| 1 |
lars |
1 |
<?php
|
|
|
2 |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
|
|
3 |
|
|
|
4 |
/**
|
|
|
5 |
* Net_FTP test suite file
|
|
|
6 |
*
|
|
|
7 |
* To run the tests execute this from the top directory for a CVS checkout
|
|
|
8 |
* $ pear run-tests -ur
|
|
|
9 |
* or this if you've installed the package
|
|
|
10 |
* $ pear run-tests -pu Net_FTP
|
|
|
11 |
*
|
|
|
12 |
* PHP version 5
|
|
|
13 |
*
|
|
|
14 |
* LICENSE: This source file is subject to version 3.0 of the PHP license
|
|
|
15 |
* that is available through the world-wide-web at the following URI:
|
|
|
16 |
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
|
|
|
17 |
* the PHP License and are unable to obtain it through the web, please
|
|
|
18 |
* send a note to license@php.net so we can mail you a copy immediately.
|
|
|
19 |
*
|
|
|
20 |
* @category Networking
|
|
|
21 |
* @package FTP
|
|
|
22 |
* @author Tobias Schlitt <toby@php.net>
|
|
|
23 |
* @copyright 1997-2008 The PHP Group
|
|
|
24 |
* @license http://www.php.net/license/3_0.txt PHP License 3.0
|
|
|
25 |
* @version CVS: $Id: AllTests.php,v 1.2.2.3 2008/05/19 18:08:23 jschippers Exp $
|
|
|
26 |
* @link http://pear.php.net/package/Net_FTP
|
|
|
27 |
* @link http://www.phpunit.de PHPUnit
|
|
|
28 |
* @since File available since Release 0.0.1
|
|
|
29 |
*/
|
|
|
30 |
|
|
|
31 |
if (!defined('PHPUnit_MAIN_METHOD')) {
|
|
|
32 |
define('PHPUnit_MAIN_METHOD', 'Net_FTP_AllTests::main');
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
require_once 'PHPUnit/Framework/TestSuite.php';
|
|
|
36 |
require_once 'PHPUnit/TextUI/TestRunner.php';
|
|
|
37 |
|
|
|
38 |
chdir(dirname(__FILE__));
|
|
|
39 |
require_once 'Net_FTPTest.php';
|
|
|
40 |
|
|
|
41 |
/**
|
|
|
42 |
* Unit test case for Net_FTP
|
|
|
43 |
*
|
|
|
44 |
* @category Networking
|
|
|
45 |
* @package FTP
|
|
|
46 |
* @author Jorrit Schippers <jschippers@php.net>
|
|
|
47 |
* @copyright 1997-2008 The PHP Group
|
|
|
48 |
* @license http://www.php.net/license/3_0.txt PHP License 3.0
|
|
|
49 |
* @version Release: 1.3.7
|
|
|
50 |
* @link http://pear.php.net/package/Net_FTP
|
|
|
51 |
* @since Class available since Release 1.3.3
|
|
|
52 |
*/
|
|
|
53 |
class Net_FTP_AllTests
|
|
|
54 |
{
|
|
|
55 |
/**
|
|
|
56 |
* Main test suite run method
|
|
|
57 |
*
|
|
|
58 |
* @return void
|
|
|
59 |
*/
|
|
|
60 |
public static function main()
|
|
|
61 |
{
|
|
|
62 |
PHPUnit_TextUI_TestRunner::run(self::suite());
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
/**
|
|
|
66 |
* Main test suite method
|
|
|
67 |
*
|
|
|
68 |
* @return void
|
|
|
69 |
*/
|
|
|
70 |
public static function suite()
|
|
|
71 |
{
|
|
|
72 |
$suite = new PHPUnit_Framework_TestSuite('Net_FTP Tests');
|
|
|
73 |
$suite->addTestSuite('Net_FTPTest');
|
|
|
74 |
|
|
|
75 |
return $suite;
|
|
|
76 |
}
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
if (PHPUnit_MAIN_METHOD == 'Net_FTP_AllTests::main') {
|
|
|
80 |
Net_FTP_AllTests::main();
|
|
|
81 |
}
|
|
|
82 |
?>
|