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