ba828c6cc914427232f2f09031494b522f46306e
2 // vim: set si ai expandtab tabstop=4 shiftwidth=4 softtabstop=4:
5 * File for the api_v3_AllTests class
9 * @author Walt Haas <walt@dharmatech.org> (801) 534-1262
10 * @copyright Copyright CiviCRM LLC (C) 2009
11 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html
12 * GNU Affero General Public License version 3
13 * @version $Id: AllTests.php 31254 2010-12-15 10:09:29Z eileen $
16 * This file is part of CiviCRM
18 * CiviCRM is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU Affero General Public License
20 * as published by the Free Software Foundation; either version 3 of
21 * the License, or (at your option) any later version.
23 * CiviCRM is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU Affero General Public License for more details.
28 * You should have received a copy of the GNU Affero General Public
29 * License along with this program. If not, see
30 * <http://www.gnu.org/licenses/>.
34 * Include parent class definition
36 require_once 'CiviTest/CiviTestSuite.php';
39 * Class containing all API v3 test suites
43 class api_v3_AllTests
extends CiviTestSuite
{
44 private static $instance = NULL;
47 * Simple name based constructor
48 * @param string $theClass
51 function __construct($theClass = '', $name = '') {
52 parent
::__construct($theClass, $name);
57 private static function getInstance() {
58 if (is_null(self
::$instance)) {
59 self
::$instance = new self
;
61 return self
::$instance;
65 * Build test suite dynamically
67 public static function suite() {
68 $inst = self
::getInstance();
69 return $inst->implSuite(__FILE__
);
72 // class api_v3_AllTests
74 // -- set Emacs parameters --
79 // c-hanging-comment-ender-p: nil
80 // indent-tabs-mode: nil