Merge pull request #17976 from civicrm/5.28
[civicrm-core.git] / tests / phpunit / CRM / AllTests.php
1 <?php
2 // vim: set si ai expandtab tabstop=4 shiftwidth=4 softtabstop=4:
3
4 /**
5 * File for the CRM_AllTests class
6 *
7 * (PHP 5)
8 *
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 * @package CiviCRM
14 *
15 * This file is part of CiviCRM
16 *
17 * CiviCRM is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Affero General Public License
19 * as published by the Free Software Foundation; either version 3 of
20 * the License, or (at your option) any later version.
21 *
22 * CiviCRM is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU Affero General Public License for more details.
26 *
27 * You should have received a copy of the GNU Affero General Public
28 * License along with this program. If not, see
29 * <http://www.gnu.org/licenses/>.
30 */
31
32 /**
33 * Class containing all CRM test suites
34 *
35 * @package CiviCRM
36 */
37 class CRM_AllTests extends CiviTestSuite {
38 private static $instance = NULL;
39
40 /**
41 */
42 private static function getInstance() {
43 if (is_null(self::$instance)) {
44 self::$instance = new self();
45 }
46 return self::$instance;
47 }
48
49 /**
50 * Build test suite dynamically.
51 */
52 public static function suite() {
53 $inst = self::getInstance();
54 return $inst->implSuite(__FILE__);
55 }
56
57 }
58 // class AllTests
59
60 // -- set Emacs parameters --
61 // Local variables:
62 // mode: php;
63 // tab-width: 4
64 // c-basic-offset: 4
65 // c-hanging-comment-ender-p: nil
66 // indent-tabs-mode: nil
67 // End: