Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
// http://cvs.php.net/viewvc.cgi/pear/Console_CommandLine/tests/AllTests.php?view=co&revision=1.1&content-type=text%2Fplain
3
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
 
5
/**
6
 * This file is part of the PEAR Console_CommandLine package.
7
 *
8
 * PHP version 5
9
 *
10
 * LICENSE: This source file is subject to the MIT license that is available
11
 * through the world-wide-web at the following URI:
12
 * http://opensource.org/licenses/mit-license.php
13
 *
14
 * @category  Console
15
 * @package   Console_CommandLine
16
 * @author    David JEAN LOUIS <izimobil@gmail.com>
17
 * @copyright 2007 David JEAN LOUIS
18
 * @license   http://opensource.org/licenses/mit-license.php MIT License
19
 * @version   CVS: $Id: AllTests.php 964 2012-02-27 13:58:45Z tiefland $
20
 * @link      http://pear.php.net/package/Console_CommandLine
21
 * @since     File available since release 1.0.0
22
 */
23
 
24
if (!defined('PHPUnit_MAIN_METHOD')) {
25
    define('PHPUnit_MAIN_METHOD', 'Console_CommandLine_AllTests::main');
26
}
27
 
28
require_once 'PHPUnit/Autoload.php';
29
require_once 'PHPUnit/Extensions/PhptTestSuite.php';
30
require_once 'PHPUnit/TextUI/TestRunner.php';
31
 
32
/**
33
 * Console_CommandLine phpt test suite.
34
 *
35
 * Run all tests from the package root directory:
36
 * $ phpunit Console_CommandLine_AllTests tests/AllTests.php
37
 * or
38
 * $ php tests/AllTests.php
39
 *
40
 * @category  Console
41
 * @package   Console_CommandLine
42
 * @author    David JEAN LOUIS <izimobil@gmail.com>
43
 * @copyright 2007 David JEAN LOUIS
44
 * @license   http://opensource.org/licenses/mit-license.php MIT License
45
 * @version   Release: @package_version@
46
 * @link      http://pear.php.net/package/Console_CommandLine
47
 * @since     Class available since release 1.0.0
48
 */
49
class Console_CommandLine_AllTests
50
{
51
    /**
52
     * Runs the test suite
53
     *
54
     * @return void
55
     * @static
56
     */
57
    public static function main()
58
    {
59
        PHPUnit_TextUI_TestRunner::run(self::suite());
60
    }
61
 
62
    /**
63
     * Return the phpt test suite
64
     *
65
     * @return object the PHPUnit_Framework_TestSuite object
66
     * @static
67
     */
68
    public static function suite()
69
    {
70
        return new PHPUnit_Extensions_PhptTestSuite(dirname(__FILE__));
71
    }
72
}
73
 
74
if (PHPUnit_MAIN_METHOD == 'Console_CommandLine_AllTests::main') {
75
    Console_CommandLine_AllTests::main();
76
}
77
 
78
?>