diff options
author | Marcus Boerger <helly@php.net> | 2003-03-28 18:58:18 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-03-28 18:58:18 +0000 |
commit | 18ff958ad38c521766f4ade2e1aac7cc97c9bc0a (patch) | |
tree | fb49edb3217d3a494da94e4a8cdf1847763a16ec | |
parent | 2ad3f446c3b703d88f18dd54f2aaef4b250e96f8 (diff) | |
download | php-git-18ff958ad38c521766f4ade2e1aac7cc97c9bc0a.tar.gz |
fix these tests
-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 |