forked from weierophinney/phly
/
AllTests.php
53 lines (45 loc) · 1.12 KB
/
AllTests.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* Phly - PHp LibrarY
*
* @category Phly
* @package Phly
* @subpackage Test
* @copyright Copyright (C) 2008 - Present, Matthew Weier O'Phinney
* @author Matthew Weier O'Phinney <mweierophinney@gmail.com>
* @license New BSD {@link http://mwop.net/license}
*/
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'AllTests::main');
}
/**
* Test helper
*/
require_once dirname(__FILE__) . '/TestHelper.php';
/**
* @see Phly_AllTests
*/
require_once 'Phly/AllTests.php';
/**
* @category Phly
* @package Phly
* @subpackage Test
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
* @license New BSD {@link http://www.opensource.org/licenses/bsd-license.php}
*/
class AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite(), array());
}
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('Phly');
$suite->addTest(Phly_AllTests::suite());
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
AllTests::main();
}