Merge pull request #23909 from civicrm/5.51
[civicrm-core.git] / tests / phpunit / CRM / AllTests.php
CommitLineData
6a488035
TO
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 *
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 13 * @package CiviCRM
6a488035
TO
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
6a488035
TO
32/**
33 * Class containing all CRM test suites
34 *
6c6e6187 35 * @package CiviCRM
6a488035
TO
36 */
37class CRM_AllTests extends CiviTestSuite {
38 private static $instance = NULL;
39
40 /**
6a488035
TO
41 */
42 private static function getInstance() {
43 if (is_null(self::$instance)) {
7c550ca0 44 self::$instance = new self();
6a488035
TO
45 }
46 return self::$instance;
47 }
48
49 /**
eceb18cc 50 * Build test suite dynamically.
6a488035
TO
51 */
52 public static function suite() {
53 $inst = self::getInstance();
54 return $inst->implSuite(__FILE__);
55 }
96025800 56
6a488035
TO
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: