cvs: php4 /tests/classes interfaces_001.phpt interfaces_002.phpt
| From: | Marcus Boerger | Date: | Fri, 28 Mar 2003 18:58:18 +0000 |
| Subject: | cvs: php4 /tests/classes interfaces_001.phpt interfaces_002.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19825@lists.php.net to get a copy of this message | ||
helly Fri Mar 28 13:58:18 2003 EDT
Modified files:
/php4/tests/classes interfaces_001.phpt interfaces_002.phpt
Log:
fix these tests
Index: php4/tests/classes/interfaces_001.phpt
diff -u php4/tests/classes/interfaces_001.phpt:1.1 php4/tests/classes/interfaces_001.phpt:1.2
--- php4/tests/classes/interfaces_001.phpt:1.1 Fri Mar 7 10:56:31 2003
+++ php4/tests/classes/interfaces_001.phpt Fri Mar 28 13:58:18 2003
@@ -9,7 +9,7 @@
public function getMessage();
}
-class Exception implements Throwable {
+class Exception_foo implements Throwable {
public $foo = "foo";
public function getMessage() {
@@ -17,7 +17,7 @@
}
}
-$foo = new Exception;
+$foo = new Exception_foo;
echo $foo->getMessage() . "\n";
?>
Index: php4/tests/classes/interfaces_002.phpt
diff -u php4/tests/classes/interfaces_002.phpt:1.1 php4/tests/classes/interfaces_002.phpt:1.2
--- php4/tests/classes/interfaces_002.phpt:1.1 Fri Mar 7 10:56:31 2003
+++ php4/tests/classes/interfaces_002.phpt Fri Mar 28 13:58:18 2003
@@ -10,7 +10,7 @@
public function getErrno();
}
-class Exception implements Throwable {
+class Exception_foo implements Throwable {
public $foo = "foo";
public function getMessage() {
@@ -19,11 +19,11 @@
}
// this should die -- Exception class must be abstract...
-$foo = new Exception;
+$foo = new Exception_foo;
echo $foo->getMessage() . "\n";
?>
--EXPECTF--
-Fatal error: Class exception contains abstract methods and must be declared abstract in %s on line
%d
+Fatal error: Class exception_foo contains abstract methods and must be declared abstract in %s on
line %d