| 1 |
lars |
1 |
<?php
|
|
|
2 |
/* vim: set expandtab tabstop=4 shiftwidth=4: */
|
|
|
3 |
// +----------------------------------------------------------------------+
|
|
|
4 |
// | PHP Version 4 |
|
|
|
5 |
// +----------------------------------------------------------------------+
|
|
|
6 |
// | Copyright (c) 2004 The PHP Group |
|
|
|
7 |
// +----------------------------------------------------------------------+
|
|
|
8 |
// | This source file is subject to version 3.0 of the PHP license, |
|
|
|
9 |
// | that is bundled with this package in the file LICENSE, and is |
|
|
|
10 |
// | available through the world-wide-web at the following url: |
|
|
|
11 |
// | http://www.php.net/license/3_0.txt. |
|
|
|
12 |
// | If you did not receive a copy of the PHP license and are unable to |
|
|
|
13 |
// | obtain it through the world-wide-web, please send a note to |
|
|
|
14 |
// | license@php.net so we can mail you a copy immediately. |
|
|
|
15 |
// +----------------------------------------------------------------------+
|
|
|
16 |
// | Author: Bertrand Mansion <bmansion@mamasam.com> |
|
|
|
17 |
// +----------------------------------------------------------------------+
|
|
|
18 |
//
|
|
|
19 |
// $Id: AllTests.php 294988 2010-02-12 04:57:14Z clockwerx $
|
|
|
20 |
|
|
|
21 |
/**
|
|
|
22 |
* Unit tests for Console_Getargs package.
|
|
|
23 |
*/
|
|
|
24 |
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
|
25 |
define('PHPUnit_MAIN_METHOD', 'Console_Getargs_AllTests::main');
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
require_once 'PHPUnit/TextUI/TestRunner.php';
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
chdir(dirname(__FILE__) . '/../');
|
|
|
32 |
require_once 'Getargs_basic_testcase.php';
|
|
|
33 |
require_once 'Getargs_getValues_testcase.php';
|
|
|
34 |
|
|
|
35 |
class Console_Getargs_AllTests
|
|
|
36 |
{
|
|
|
37 |
public static function main()
|
|
|
38 |
{
|
|
|
39 |
PHPUnit_TextUI_TestRunner::run(self::suite());
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public static function suite()
|
|
|
43 |
{
|
|
|
44 |
$suite = new PHPUnit_Framework_TestSuite('Console_Getargs Tests');
|
|
|
45 |
/** Add testsuites, if there is. */
|
|
|
46 |
$suite->addTestSuite('Getargs_basic_testcase');
|
|
|
47 |
$suite->addTestSuite('Getargs_getValues_testcase');
|
|
|
48 |
|
|
|
49 |
return $suite;
|
|
|
50 |
}
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
if (PHPUnit_MAIN_METHOD == 'Console_Getargs_AllTests::main') {
|
|
|
54 |
Console_Getargs_AllTests::main();
|
|
|
55 |
}
|
|
|
56 |
?>
|