|
cvs: pear(ZEND_ENGINE_2) /PHPUnit/PHPUnit RepeatedTest.php TestCase.php Tes: msg#00556php.cvs.pear
sebastian Wed Sep 25 02:29:04 2002 EDT Modified files: (Branch: ZEND_ENGINE_2) /pear/PHPUnit/PHPUnit RepeatedTest.php TestCase.php TestDecorator.php TestListener.php Log: Fix constructor{s| calls}. Index: pear/PHPUnit/PHPUnit/RepeatedTest.php diff -u pear/PHPUnit/PHPUnit/RepeatedTest.php:1.1.2.1 pear/PHPUnit/PHPUnit/RepeatedTest.php:1.1.2.2 --- pear/PHPUnit/PHPUnit/RepeatedTest.php:1.1.2.1 Wed Sep 25 02:23:15 2002 +++ pear/PHPUnit/PHPUnit/RepeatedTest.php Wed Sep 25 02:29:04 2002 @@ -16,7 +16,7 @@ // | Author: Sebastian Bergmann <sb@xxxxxxxxxxxxxxxxxxxxx> | // +----------------------------------------------------------------------+ // -// $Id: RepeatedTest.php,v 1.1.2.1 2002/09/25 06:23:15 sebastian Exp $ +// $Id: RepeatedTest.php,v 1.1.2.2 2002/09/25 06:29:04 sebastian Exp $ // require_once 'PHPUnit/TestDecorator.php'; @@ -34,8 +34,8 @@ * var $fValue1; * var $fValue2; * - * function MathTest($name) { - * $this->PHPUnit::TestCase($name); + * function __construct($name) { + * parent::__construct($name); * } * * function setUp() { Index: pear/PHPUnit/PHPUnit/TestCase.php diff -u pear/PHPUnit/PHPUnit/TestCase.php:1.2.2.1 pear/PHPUnit/PHPUnit/TestCase.php:1.2.2.2 --- pear/PHPUnit/PHPUnit/TestCase.php:1.2.2.1 Wed Sep 25 02:23:15 2002 +++ pear/PHPUnit/PHPUnit/TestCase.php Wed Sep 25 02:29:04 2002 @@ -16,7 +16,7 @@ // | Author: Sebastian Bergmann <sb@xxxxxxxxxxxxxxxxxxxxx> | // +----------------------------------------------------------------------+ // -// $Id: TestCase.php,v 1.2.2.1 2002/09/25 06:23:15 sebastian Exp $ +// $Id: TestCase.php,v 1.2.2.2 2002/09/25 06:29:04 sebastian Exp $ // require_once 'PHPUnit/Assert.php'; @@ -41,8 +41,8 @@ * var $fValue1; * var $fValue2; * - * function MathTest($name) { - * $this->PHPUnit::TestCase($name); + * function __construct($name) { + * parent::__construct($name); * } * * function setUp() { Index: pear/PHPUnit/PHPUnit/TestDecorator.php diff -u pear/PHPUnit/PHPUnit/TestDecorator.php:1.1.2.1 pear/PHPUnit/PHPUnit/TestDecorator.php:1.1.2.2 --- pear/PHPUnit/PHPUnit/TestDecorator.php:1.1.2.1 Wed Sep 25 02:23:15 2002 +++ pear/PHPUnit/PHPUnit/TestDecorator.php Wed Sep 25 02:29:04 2002 @@ -16,7 +16,7 @@ // | Author: Sebastian Bergmann <sb@xxxxxxxxxxxxxxxxxxxxx> | // +----------------------------------------------------------------------+ // -// $Id: TestDecorator.php,v 1.1.2.1 2002/09/25 06:23:15 sebastian Exp $ +// $Id: TestDecorator.php,v 1.1.2.2 2002/09/25 06:29:04 sebastian Exp $ // require_once 'PHPUnit/TestCase.php'; @@ -48,7 +48,7 @@ * @param object * @access public */ - function PHPUnit::TestDecorator($test) { + function __construct($test) { if (is_object($test) && (is_a($test, 'PHPUnit::TestCase') || is_a($test, 'PHPUnit::TestSuite'))) { Index: pear/PHPUnit/PHPUnit/TestListener.php diff -u pear/PHPUnit/PHPUnit/TestListener.php:1.1.2.1 pear/PHPUnit/PHPUnit/TestListener.php:1.1.2.2 --- pear/PHPUnit/PHPUnit/TestListener.php:1.1.2.1 Wed Sep 25 02:23:15 2002 +++ pear/PHPUnit/PHPUnit/TestListener.php Wed Sep 25 02:29:04 2002 @@ -16,7 +16,7 @@ // | Author: Sebastian Bergmann <sb@xxxxxxxxxxxxxxxxxxxxx> | // +----------------------------------------------------------------------+ // -// $Id: TestListener.php,v 1.1.2.1 2002/09/25 06:23:15 sebastian Exp $ +// $Id: TestListener.php,v 1.1.2.2 2002/09/25 06:29:04 sebastian Exp $ // /** @@ -32,8 +32,8 @@ * var $fValue1; * var $fValue2; * - * function MathTest($name) { - * $this->PHPUnit::TestCase($name); + * function __construct($name) { + * parent::__construct($name); * } * * function setUp() { -- PEAR CVS Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| News | FAQ | advertise |