cvs: pear /PHPUnit2/Util Skeleton.php
| From: | Sebastian Bergmann | Date: | Mon, 30 May 2005 14:30:00 +0000 |
| Subject: | cvs: pear /PHPUnit2/Util Skeleton.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32247@lists.php.net to get a copy of this message | ||
sebastian Mon May 30 10:30:00 2005 EDT
Modified files:
/pear/PHPUnit2/Util Skeleton.php
Log:
Fix that makes the stand-alone execution of the generated sourcefile work again.
http://cvs.php.net/diff.php/pear/PHPUnit2/Util/Skeleton.php?r1=1.22&r2=1.23&ty=u
Index: pear/PHPUnit2/Util/Skeleton.php
diff -u pear/PHPUnit2/Util/Skeleton.php:1.22 pear/PHPUnit2/Util/Skeleton.php:1.23
--- pear/PHPUnit2/Util/Skeleton.php:1.22 Thu May 26 12:05:37 2005
+++ pear/PHPUnit2/Util/Skeleton.php Mon May 30 10:30:00 2005
@@ -15,7 +15,7 @@
* @author Sebastian Bergmann <sb@sebastian-bergmann.de>
* @copyright 2002-2005 Sebastian Bergmann <sb@sebastian-bergmann.de>
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Skeleton.php,v 1.22 2005/05/26 16:05:37 sebastian Exp $
+ * @version CVS: $Id: Skeleton.php,v 1.23 2005/05/30 14:30:00 sebastian Exp $
* @link http://pear.php.net/package/PHPUnit2
* @since File available since Release 2.1.0
*/
@@ -59,7 +59,6 @@
require_once "PHPUnit2/Framework/TestCase.php";
require_once "PHPUnit2/Framework/TestSuite.php";
-require_once "PHPUnit2/TextUI/TestRunner.php";
// You may remove the following line when all tests have been implemented.
require_once "PHPUnit2/Framework/IncompleteTestError.php";
@@ -78,6 +77,8 @@
* @static
*/
public static function main() {
+ require_once "PHPUnit2/TextUI/TestRunner.php";
+
$suite = new PHPUnit2_Framework_TestSuite("{className}Test");
$result = PHPUnit2_TextUI_TestRunner::run($suite);
}