Merge pull request #16877 from agileware/CIVICRM-1457
[civicrm-core.git] / tests / phpunit / api / v4 / AllTests.php
1 <?php
2
3 /*
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
6 | |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
11 */
12
13 /**
14 *
15 * @package CRM
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 */
18
19 // vim: set si ai expandtab tabstop=4 shiftwidth=4 softtabstop=4:
20
21 /**
22 * File for the api_v4_AllTests class
23 *
24 * (PHP 5)
25 *
26 * @author Walt Haas <walt@dharmatech.org> (801) 534-1262
27 * @copyright Copyright CiviCRM LLC (C) 2009
28 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html
29 * GNU Affero General Public License version 3
30 * @version $Id: AllTests.php 40328 2012-05-11 23:06:13Z allen $
31 * @package CiviCRM
32 *
33 * This file is part of CiviCRM
34 *
35 * CiviCRM is free software; you can redistribute it and/or
36 * modify it under the terms of the GNU Affero General Public License
37 * as published by the Free Software Foundation; either version 3 of
38 * the License, or (at your option) any later version.
39 *
40 * CiviCRM is distributed in the hope that it will be useful,
41 * but WITHOUT ANY WARRANTY; without even the implied warranty of
42 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43 * GNU Affero General Public License for more details.
44 *
45 * You should have received a copy of the GNU Affero General Public
46 * License along with this program. If not, see
47 * <http://www.gnu.org/licenses/>.
48 */
49
50 /**
51 * Class containing the APIv4 test suite
52 *
53 * @package CiviCRM
54 */
55 class api_v4_AllTests extends CiviTestSuite {
56 private static $instance = NULL;
57
58 /**
59 */
60 private static function getInstance() {
61 if (is_null(self::$instance)) {
62 self::$instance = new self();
63 }
64 return self::$instance;
65 }
66
67 /**
68 * Build test suite dynamically.
69 */
70 public static function suite() {
71 $inst = self::getInstance();
72 return $inst->implSuite(__FILE__);
73 }
74
75 }
76 // class AllTests
77
78 // -- set Emacs parameters --
79 // Local variables:
80 // mode: php;
81 // tab-width: 4
82 // c-basic-offset: 4
83 // c-hanging-comment-ender-p: nil
84 // indent-tabs-mode: nil
85 // End: