2 // vim: set si ai expandtab tabstop=4 shiftwidth=4 softtabstop=4:
5 * File for the CRM_AllTests class
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
15 * This file is part of CiviCRM
17 * CiviCRM is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Affero General Public License
19 * as published by the Free Software Foundation; either version 3 of
20 * the License, or (at your option) any later version.
22 * CiviCRM is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU Affero General Public License for more details.
27 * You should have received a copy of the GNU Affero General Public
28 * License along with this program. If not, see
29 * <http://www.gnu.org/licenses/>.
33 * Class containing all CRM test suites
37 class CRM_AllTests
extends CiviTestSuite
{
38 private static $instance = NULL;
42 private static function getInstance() {
43 if (is_null(self
::$instance)) {
44 self
::$instance = new self();
46 return self
::$instance;
50 * Build test suite dynamically.
52 public static function suite() {
53 $inst = self
::getInstance();
54 return $inst->implSuite(__FILE__
);
60 // -- set Emacs parameters --
65 // c-hanging-comment-ender-p: nil
66 // indent-tabs-mode: nil