Commit | Line | Data |
---|---|---|
6a488035 | 1 | <?php |
6a488035 | 2 | /** |
3d469574 | 3 | * @file |
4 | * | |
5 | * File for the CRM_Utils_Cache_AllTests class | |
6a488035 TO |
6 | * |
7 | * (PHP 5) | |
8 | * | |
6c6e6187 TO |
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 | |
6a488035 | 12 | * GNU Affero General Public License version 3 |
6c6e6187 TO |
13 | * @version $Id: AllTests.php 40328 2012-05-11 23:06:13Z allen $ |
14 | * @package CiviCRM | |
6a488035 TO |
15 | * |
16 | * This file is part of CiviCRM | |
17 | * | |
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. | |
22 | * | |
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. | |
27 | * | |
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/>. | |
31 | */ | |
32 | ||
6a488035 | 33 | /** |
fe482240 | 34 | * Class containing all test suites. |
6a488035 | 35 | * |
6c6e6187 | 36 | * @package CiviCRM |
6a488035 TO |
37 | */ |
38 | class CRM_Utils_Cache_AllTests extends CiviTestSuite { | |
39 | private static $instance = NULL; | |
40 | ||
41 | /** | |
fe482240 | 42 | * Get instance. |
6a488035 TO |
43 | */ |
44 | private static function getInstance() { | |
45 | if (is_null(self::$instance)) { | |
28a04ea9 | 46 | self::$instance = new self(); |
6a488035 TO |
47 | } |
48 | return self::$instance; | |
49 | } | |
50 | ||
51 | /** | |
fe482240 | 52 | * Build test suite dynamically. |
6a488035 TO |
53 | */ |
54 | public static function suite() { | |
55 | $inst = self::getInstance(); | |
56 | return $inst->implSuite(__FILE__); | |
57 | } | |
96025800 | 58 | |
6a488035 | 59 | } |