cvs: pear /PEAR_Info/tests AllTests.php
| From: | Laurent Laville | Date: | Thu, 05 Jul 2007 21:30:02 +0000 |
| Subject: | cvs: pear /PEAR_Info/tests AllTests.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-47877@lists.php.net to get a copy of this message | ||
farell Thu Jul 5 21:30:02 2007 UTC
Modified files:
/pear/PEAR_Info/tests AllTests.php
Log:
Change AllTests.php to make unit tests runnable through global PEAR_AllTests
http://cvs.php.net/viewvc.cgi/pear/PEAR_Info/tests/AllTests.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/PEAR_Info/tests/AllTests.php
diff -u pear/PEAR_Info/tests/AllTests.php:1.1 pear/PEAR_Info/tests/AllTests.php:1.2
--- pear/PEAR_Info/tests/AllTests.php:1.1 Thu Jul 5 17:13:18 2007
+++ pear/PEAR_Info/tests/AllTests.php Thu Jul 5 21:30:02 2007
@@ -15,18 +15,20 @@
* @author Laurent Laville <pear@laurent-laville.org>
* @copyright 2007 Laurent Laville
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: AllTests.php,v 1.1 2007/07/05 17:13:18 farell Exp $
+ * @version CVS: $Id: AllTests.php,v 1.2 2007/07/05 21:30:02 farell Exp $
* @link http://pear.php.net/package/PEAR_Info
* @since File available since Release 1.7.0
*/
if (!defined('PHPUnit_MAIN_METHOD')) {
- define('PHPUnit_MAIN_METHOD', 'AllTests::main');
+ define('PHPUnit_MAIN_METHOD', 'PEAR_Info_AllTests::main');
}
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
+chdir(dirname(__FILE__));
+
require_once 'PEAR_Info_TestCase_DefaultConfig.php';
require_once 'PEAR_Info_TestCase_CustomConfig.php';
@@ -34,11 +36,11 @@
* PEAR_Info no-regression test suite
*
* Run all tests from the package root directory:
- * #phpunit AllTests tests/AllTests.php
+ * #phpunit PEAR_Info_AllTests tests/AllTests.php
* or
* #php tests/AllTests.php
* or for code coverage testing
- * #phpunit --report tests/coverage AllTests tests/AllTests.php
+ * #phpunit --report tests/coverage PEAR_Info_AllTests tests/AllTests.php
*
* After the code coverage test browse the index.html file in tests/coverage.
* The code coverage is close to 100%.
@@ -48,12 +50,12 @@
* @author Laurent Laville <pear@laurent-laville.org>
* @copyright 2007 Laurent Laville
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: AllTests.php,v 1.1 2007/07/05 17:13:18 farell Exp $
+ * @version CVS: $Id: AllTests.php,v 1.2 2007/07/05 21:30:02 farell Exp $
* @link http://pear.php.net/package/PEAR_Info
* @since Class available since Release 1.7.0
*/
-class AllTests
+class PEAR_Info_AllTests
{
/**
* Runs the test suite
@@ -85,8 +87,8 @@
}
}
-if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
- AllTests::main();
+if (PHPUnit_MAIN_METHOD == 'PEAR_Info_AllTests::main') {
+ PEAR_Info_AllTests::main();
}
?>
\ No newline at end of file