diff options
-rw-r--r-- | tests/classes/interfaces_001.phpt | 4 | ||||
-rw-r--r-- | tests/classes/interfaces_002.phpt | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/classes/interfaces_001.phpt b/tests/classes/interfaces_001.phpt index e65074d830..41e1f6776d 100644 --- a/tests/classes/interfaces_001.phpt +++ b/tests/classes/interfaces_001.phpt @@ -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"; ?> diff --git a/tests/classes/interfaces_002.phpt b/tests/classes/interfaces_002.phpt index 309dd76cec..baa0ec7592 100644 --- a/tests/classes/interfaces_002.phpt +++ b/tests/classes/interfaces_002.phpt @@ -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 |