4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
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 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 // vim: set si ai expandtab tabstop=4 shiftwidth=4 softtabstop=4:
22 * File for the api_v4_AllTests class
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 $
33 * This file is part of CiviCRM
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.
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.
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/>.
51 * Class containing the APIv4 test suite
55 class api_v4_AllTests
extends CiviTestSuite
{
56 private static $instance = NULL;
60 private static function getInstance() {
61 if (is_null(self
::$instance)) {
62 self
::$instance = new self();
64 return self
::$instance;
68 * Build test suite dynamically.
70 public static function suite() {
71 $inst = self
::getInstance();
72 return $inst->implSuite(__FILE__
);
78 // -- set Emacs parameters --
83 // c-hanging-comment-ender-p: nil
84 // indent-tabs-mode: nil