PHPUnit ZEND_ENGINE_2 branch
| From: | Brian J. France | Date: | Wed, 09 Apr 2003 07:45:57 +0000 |
| Subject: | PHPUnit ZEND_ENGINE_2 branch | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-15055@lists.php.net to get a copy of this message | ||
I had to make some changes (see diff below) to PHPUnit (branch ZEND_ENGINE_2)
to get it to work with 5.0.0-dev. Are these problems with the scripts or
problems with ZE2?
Thanks,
Brian
---
Index: AssertionFailedError.php
===================================================================
RCS file: /repository/pear/PHPUnit/Attic/AssertionFailedError.php,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 AssertionFailedError.php
--- AssertionFailedError.php 31 Mar 2003 09:33:54 -0000 1.1.2.5
+++ AssertionFailedError.php 9 Apr 2003 07:39:44 -0000
@@ -23,7 +23,7 @@
* @author Sebastian Bergmann <sb@sebastian-bergmann.de>
* Based upon JUnit, see http://www.junit.org/ for
details.
*/
- class AssertionFailedError extends Exception {
+ class AssertionFailedError extends ::Exception {
}
}
Index: TestCase.php
===================================================================
RCS file: /repository/pear/PHPUnit/Attic/TestCase.php,v
retrieving revision 1.1.2.4
diff -u -r1.1.2.4 TestCase.php
--- TestCase.php 23 Mar 2003 16:05:38 -0000 1.1.2.4
+++ TestCase.php 9 Apr 2003 07:39:44 -0000
@@ -153,7 +153,7 @@
$this->runTest();
}
- catch (AssertionFailedError $e) {
+ catch (PEAR:PHPUnit::AssertionFailedError $e) {
$this->result->addFailure($this, $e);
}
Index: TestResult.php
===================================================================
RCS file: /repository/pear/PHPUnit/Attic/TestResult.php,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 TestResult.php
--- TestResult.php 23 Mar 2003 16:58:30 -0000 1.1.2.5
+++ TestResult.php 9 Apr 2003 07:39:45 -0000
@@ -127,7 +127,7 @@
* @param object
* @access public
*/
- public function addPassedTest(Test $test) {
+ public function addPassedTest(PEAR:PHPUnit::Test $test) {
$this->passedTests[] = $test;
}
@@ -140,7 +140,7 @@
* @param object
* @access public
*/
- public function endTest(Test $test) {
+ public function endTest(PEAR:PHPUnit::Test $test) {
for ($i = 0; $i < sizeof($this->listeners); $i++) {
$this->listeners[$i]->endTest($test);