INFRA-132 add full stop after comments
[civicrm-core.git] / tests / phpunit / api / v3 / 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 api_v3_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
TO
13 * @version $Id: AllTests.php 31254 2010-12-15 10:09:29Z eileen $
14 * @package CiviCRM
6a488035
TO
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 * Include parent class definition
35 */
36require_once 'CiviTest/CiviTestSuite.php';
37
38/**
39 * Class containing all API v3 test suites
40 *
6c6e6187 41 * @package CiviCRM
6a488035
TO
42 */
43class api_v3_AllTests extends CiviTestSuite {
44 private static $instance = NULL;
45
46 /**
eceb18cc
EM
47 * Simple name based constructor.
48 *
1e1fdcf6
EM
49 * @param string $theClass
50 * @param string $name
95ea96be 51 */
389bcebf 52 public function __construct($theClass = '', $name = '') {
6a488035
TO
53 parent::__construct($theClass, $name);
54 }
55
56 /**
6a488035
TO
57 */
58 private static function getInstance() {
59 if (is_null(self::$instance)) {
389bcebf 60 self::$instance = new self();
6a488035
TO
61 }
62 return self::$instance;
63 }
64
65 /**
eceb18cc 66 * Build test suite dynamically.
6a488035
TO
67 */
68 public static function suite() {
69 $inst = self::getInstance();
70 return $inst->implSuite(__FILE__);
71 }
96025800 72
6a488035
TO
73}
74// class api_v3_AllTests
75
76// -- set Emacs parameters --
77// Local variables:
78// mode: php;
79// tab-width: 4
80// c-basic-offset: 4
81// c-hanging-comment-ender-p: nil
82// indent-tabs-mode: nil
83// End: