]> granicus.if.org Git - php/commitdiff
fix these tests
authorMarcus Boerger <helly@php.net>
Fri, 28 Mar 2003 18:58:18 +0000 (18:58 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 28 Mar 2003 18:58:18 +0000 (18:58 +0000)
tests/classes/interfaces_001.phpt
tests/classes/interfaces_002.phpt

index e65074d83020d0e60677086aafddfdc3281b45f8..41e1f6776d895b5c798f3333a0a980c326f2e571 100644 (file)
@@ -9,7 +9,7 @@ interface Throwable {
        public function getMessage();
 }
 
-class Exception implements Throwable {
+class Exception_foo implements Throwable {
        public $foo = "foo";
 
        public function getMessage() {
@@ -17,7 +17,7 @@ class Exception implements Throwable {
        }
 }
 
-$foo = new Exception;
+$foo = new Exception_foo;
 echo $foo->getMessage() . "\n";
 
 ?>
index 309dd76ceca2330d9eb7e2fc32ae303ffd8e7f6f..baa0ec75924892953b281b7572952b0e631fdfc9 100644 (file)
@@ -10,7 +10,7 @@ interface Throwable {
        public function getErrno();
 }
 
-class Exception implements Throwable {
+class Exception_foo implements Throwable {
        public $foo = "foo";
 
        public function getMessage() {
@@ -19,11 +19,11 @@ class Exception implements Throwable {
 }
 
 // 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