7c092bbef85ef4cd49896820178a0b05810e7623
3 * File for the CRM_Utils_Cache_AllTests class
7 * @author Walt Haas <walt@dharmatech.org> (801) 534-1262
8 * @copyright Copyright CiviCRM LLC (C) 2009
9 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html
10 * GNU Affero General Public License version 3
11 * @version $Id: AllTests.php 40328 2012-05-11 23:06:13Z allen $
14 * This file is part of CiviCRM
16 * CiviCRM is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Affero General Public License
18 * as published by the Free Software Foundation; either version 3 of
19 * the License, or (at your option) any later version.
21 * CiviCRM is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU Affero General Public License for more details.
26 * You should have received a copy of the GNU Affero General Public
27 * License along with this program. If not, see
28 * <http://www.gnu.org/licenses/>.
32 * Include parent class definition.
34 require_once 'CiviTest/CiviTestSuite.php';
37 * Class containing all test suites.
41 class CRM_Utils_Cache_AllTests
extends CiviTestSuite
{
42 private static $instance = NULL;
47 private static function getInstance() {
48 if (is_null(self
::$instance)) {
49 self
::$instance = new self();
51 return self
::$instance;
55 * Build test suite dynamically.
57 public static function suite() {
58 $inst = self
::getInstance();
59 return $inst->implSuite(__FILE__
);