Browse Source

fix these tests

migration/unlabaled-1.3.2
Marcus Boerger 23 years ago
parent
commit
18ff958ad3
  1. 4
      tests/classes/interfaces_001.phpt
  2. 6
      tests/classes/interfaces_002.phpt

4
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";
?>

6
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
Loading…
Cancel
Save