Commit | Line | Data |
---|---|---|
19b53e5b | 1 | <?php |
380f3545 TO |
2 | |
3 | /* | |
4 | +--------------------------------------------------------------------+ | |
7d61e75f | 5 | | Copyright CiviCRM LLC. All rights reserved. | |
380f3545 | 6 | | | |
7d61e75f TO |
7 | | This work is published under the GNU AGPLv3 license with some | |
8 | | permitted exceptions and without any warranty. For full license | | |
9 | | and copyright information, see https://civicrm.org/licensing | | |
380f3545 TO |
10 | +--------------------------------------------------------------------+ |
11 | */ | |
12 | ||
13 | /** | |
14 | * | |
15 | * @package CRM | |
ca5cec67 | 16 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
380f3545 TO |
17 | * $Id$ |
18 | * | |
19 | */ | |
20 | ||
19b53e5b C |
21 | // vim: set si ai expandtab tabstop=4 shiftwidth=4 softtabstop=4: |
22 | ||
23 | /** | |
24 | * File for the api_v4_AllTests class | |
25 | * | |
26 | * (PHP 5) | |
27 | * | |
28 | * @author Walt Haas <walt@dharmatech.org> (801) 534-1262 | |
29 | * @copyright Copyright CiviCRM LLC (C) 2009 | |
30 | * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html | |
31 | * GNU Affero General Public License version 3 | |
32 | * @version $Id: AllTests.php 40328 2012-05-11 23:06:13Z allen $ | |
33 | * @package CiviCRM | |
34 | * | |
35 | * This file is part of CiviCRM | |
36 | * | |
37 | * CiviCRM is free software; you can redistribute it and/or | |
38 | * modify it under the terms of the GNU Affero General Public License | |
39 | * as published by the Free Software Foundation; either version 3 of | |
40 | * the License, or (at your option) any later version. | |
41 | * | |
42 | * CiviCRM is distributed in the hope that it will be useful, | |
43 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
44 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
45 | * GNU Affero General Public License for more details. | |
46 | * | |
47 | * You should have received a copy of the GNU Affero General Public | |
48 | * License along with this program. If not, see | |
49 | * <http://www.gnu.org/licenses/>. | |
50 | */ | |
51 | ||
52 | /** | |
53 | * Class containing the APIv4 test suite | |
54 | * | |
55 | * @package CiviCRM | |
56 | */ | |
57 | class api_v4_AllTests extends CiviTestSuite { | |
58 | private static $instance = NULL; | |
59 | ||
60 | /** | |
61 | */ | |
62 | private static function getInstance() { | |
63 | if (is_null(self::$instance)) { | |
64 | self::$instance = new self(); | |
65 | } | |
66 | return self::$instance; | |
67 | } | |
68 | ||
69 | /** | |
70 | * Build test suite dynamically. | |
71 | */ | |
72 | public static function suite() { | |
73 | $inst = self::getInstance(); | |
74 | return $inst->implSuite(__FILE__); | |
75 | } | |
76 | ||
77 | } | |
78 | // class AllTests | |
79 | ||
80 | // -- set Emacs parameters -- | |
81 | // Local variables: | |
82 | // mode: php; | |
83 | // tab-width: 4 | |
84 | // c-basic-offset: 4 | |
85 | // c-hanging-comment-ender-p: nil | |
86 | // indent-tabs-mode: nil | |
87 | // End: |