| 1 |
lars |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* Test suite for the PEAR_Info class
|
|
|
4 |
*
|
|
|
5 |
* PHP version 5
|
|
|
6 |
*
|
|
|
7 |
* LICENSE: This source file is subject to version 3.01 of the PHP license
|
|
|
8 |
* that is available through the world-wide-web at the following URI:
|
|
|
9 |
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
|
|
|
10 |
* the PHP License and are unable to obtain it through the web, please
|
|
|
11 |
* send a note to license@php.net so we can mail you a copy immediately.
|
|
|
12 |
*
|
|
|
13 |
* @category PEAR
|
|
|
14 |
* @package PEAR_Info
|
|
|
15 |
* @author Laurent Laville <pear@laurent-laville.org>
|
|
|
16 |
* @copyright 2007-2009 Laurent Laville
|
|
|
17 |
* @license http://www.php.net/license/3_01.txt PHP License 3.01
|
|
|
18 |
* @version CVS: $Id: PEAR_Info_TestSuite_Standard.php,v 1.2 2009/01/05 21:02:49 farell Exp $
|
|
|
19 |
* @link http://pear.php.net/package/PEAR_Info
|
|
|
20 |
* @since File available since Release 1.7.1
|
|
|
21 |
*/
|
|
|
22 |
|
|
|
23 |
if (!defined("PHPUnit_MAIN_METHOD")) {
|
|
|
24 |
define("PHPUnit_MAIN_METHOD", "PEAR_Info_TestSuite_Standard::main");
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
require_once 'PHPUnit/Framework.php';
|
|
|
28 |
require_once 'PHPUnit/Extensions/PhptTestSuite.php';
|
|
|
29 |
|
|
|
30 |
/**
|
|
|
31 |
* Test suite class to test standard PEAR_Info API.
|
|
|
32 |
*
|
|
|
33 |
* @category PEAR
|
|
|
34 |
* @package PEAR_Info
|
|
|
35 |
* @author Laurent Laville <pear@laurent-laville.org>
|
|
|
36 |
* @copyright 2007-2009 Laurent Laville
|
|
|
37 |
* @license http://www.php.net/license/3_01.txt PHP License 3.01
|
|
|
38 |
* @version Release: 1.9.2
|
|
|
39 |
* @link http://pear.php.net/package/PEAR_Info
|
|
|
40 |
* @since Class available since Release 1.7.1
|
|
|
41 |
*/
|
|
|
42 |
|
|
|
43 |
class PEAR_Info_TestSuite_Standard extends PHPUnit_Extensions_PhptTestSuite
|
|
|
44 |
{
|
|
|
45 |
/**
|
|
|
46 |
* Runs the test methods of this class.
|
|
|
47 |
*
|
|
|
48 |
* @return void
|
|
|
49 |
* @static
|
|
|
50 |
* @since 1.7.1
|
|
|
51 |
*/
|
|
|
52 |
public static function main()
|
|
|
53 |
{
|
|
|
54 |
include_once "PHPUnit/TextUI/TestRunner.php";
|
|
|
55 |
|
|
|
56 |
$dir = dirname(__FILE__);
|
|
|
57 |
$suite = new PHPUnit_Framework_TestSuite('PEAR_Info API test suite');
|
|
|
58 |
$suite->addTestSuite(new PEAR_Info_TestSuite_Standard($dir));
|
|
|
59 |
PHPUnit_TextUI_TestRunner::run($suite);
|
|
|
60 |
}
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
// Call PEAR_Info_TestSuite_Standard::main()
|
|
|
64 |
// if this source file is executed directly.
|
|
|
65 |
if (PHPUnit_MAIN_METHOD == "PEAR_Info_TestSuite_Standard::main") {
|
|
|
66 |
PEAR_Info_TestSuite_Standard::main();
|
|
|
67 |
}
|
|
|
68 |
?>
|