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