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