cvs: pear /HTML_QuickForm2/tests AllTests.php
| From: | Alexey Borzov | Date: | Thu, 05 Jul 2007 16:09:55 +0000 |
| Subject: | cvs: pear /HTML_QuickForm2/tests AllTests.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-47870@lists.php.net to get a copy of this message | ||
avb Thu Jul 5 16:09:55 2007 UTC
Modified files:
/pear/HTML_QuickForm2/tests AllTests.php
Log:
Change AllTests.php to (hopefully) make unit tests runnable through global AllTests.php
http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm2/tests/AllTests.php?r1=1.4&r2=1.5&diff_format=u
Index: pear/HTML_QuickForm2/tests/AllTests.php
diff -u pear/HTML_QuickForm2/tests/AllTests.php:1.4 pear/HTML_QuickForm2/tests/AllTests.php:1.5
--- pear/HTML_QuickForm2/tests/AllTests.php:1.4 Sun Apr 8 10:16:15 2007
+++ pear/HTML_QuickForm2/tests/AllTests.php Thu Jul 5 16:09:55 2007
@@ -39,21 +39,23 @@
* @author Alexey Borzov <avb@php.net>
* @author Bertrand Mansion <golgote@mamasam.com>
* @license http://opensource.org/licenses/bsd-license.php
New BSD License
- * @version CVS: $Id: AllTests.php,v 1.4 2007/04/08 10:16:15 avb Exp $
+ * @version CVS: $Id: AllTests.php,v 1.5 2007/07/05 16:09:55 avb Exp $
* @link http://pear.php.net/package/HTML_QuickForm2
*/
if (!defined('PHPUnit_MAIN_METHOD')) {
- define('PHPUnit_MAIN_METHOD', 'AllTests::main');
+ define('PHPUnit_MAIN_METHOD', 'HTML_QuickForm2_AllTests::main');
}
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
+chdir(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR);
+
require_once dirname(__FILE__) . '/QuickForm2/AllTests.php';
require_once dirname(__FILE__) . '/QuickForm2Test.php';
-class AllTests
+class HTML_QuickForm2_AllTests
{
public static function main()
{
@@ -71,7 +73,7 @@
}
}
-if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
- AllTests::main();
+if (PHPUnit_MAIN_METHOD == 'HTML_QuickForm2_AllTests::main') {
+ HTML_QuickForm2_AllTests::main();
}
?>
\ No newline at end of file