Added base version of the Ajatus PHP -library.
[ajatus.git] / plugins / ajatus / tests / all.php
blobc483e98a15c54908277a3767e68f30361c382278
1 <?php
2 /**
3 * This file is part of
4 * Ajatus - Distributed CRM
5 *
6 * Copyright (c) 2007 Jerry Jalava <jerry.jalava@gmail.com>
7 * Copyright (c) 2007 Nemein Oy <http://nemein.com>
8 * Website: http://ajatus.info
9 * Licensed under the GPL license
10 * http://www.gnu.org/licenses/gpl.html
14 if (!defined('PHPUnit_MAIN_METHOD')) {
15 define('PHPUnit_MAIN_METHOD', 'ajatus_tests_all::main');
18 require_once('PHPUnit/Framework.php');
19 require_once('PHPUnit/TextUI/TestRunner.php');
21 require_once('tests/helpers.php');
23 class ajatus_tests_all
25 public static function main()
27 PHPUnit_TextUI_TestRunner::run(self::suite());
30 public static function suite()
32 $suite = new PHPUnit_Framework_TestSuite('Ajatus');
34 $tests = ajatus_tests_helpers::get_tests(__FILE__, __CLASS__, array('testcase.php', 'helpers.php'));
35 foreach ($tests as $test)
37 $suite->addTestSuite($test);
40 return $suite;
44 if (PHPUnit_MAIN_METHOD == 'ajatus_tests_all::main') {
45 ajatus_tests_all::main();