Browse Source

- Fix tests affected by fix

PHP-5.1
Marcus Boerger 21 years ago
parent
commit
ec6db3d242
  1. 2
      tests/classes/abstract_derived.phpt
  2. 2
      tests/classes/abstract_not_declared.phpt
  3. 2
      tests/classes/abstract_redeclare.phpt
  4. 6
      tests/classes/interfaces_002.phpt

2
tests/classes/abstract_derived.phpt

@ -17,4 +17,4 @@ class derived extends base {
<?php exit(0); ?>
--EXPECTF--
Fatal error: Class derived contains 1 abstract methods and must therefore be declared abstract (derived::show) in %sabstract_derived.php on line %d
Fatal error: Class derived contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (derived::show) in %sabstract_derived.php on line %d

2
tests/classes/abstract_not_declared.phpt

@ -12,4 +12,4 @@ class fail {
echo "Done\n"; // shouldn't be displayed
?>
--EXPECTF--
Fatal error: Class fail contains 1 abstract methods and must therefore be declared abstract (fail::show) in %s on line %d
Fatal error: Class fail contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (fail::show) in %s on line %d

2
tests/classes/abstract_redeclare.phpt

@ -19,4 +19,4 @@ echo "Done\n"; // Shouldn't be displayed
?>
--EXPECTF--
Fatal error: Class fail contains 1 abstract methods and must therefore be declared abstract (fail::show) in %sabstract_redeclare.php on line %d
Fatal error: Class fail contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (fail::show) in %sabstract_redeclare.php on line %d

6
tests/classes/interfaces_002.phpt

@ -20,10 +20,10 @@ class Exception_foo implements Throwable {
// this should die -- Exception class must be abstract...
$foo = new Exception_foo;
echo $foo->getMessage() . "\n";
echo "Message: " . $foo->getMessage() . "\n";
?>
===DONE===
--EXPECTF--
Fatal error: Class Exception_foo contains 1 abstract methods and must therefore be declared abstract (Throwable::getErrno) in %s on line %d
Fatal error: Class Exception_foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Throwable::getErrno) in %s on line %d
Loading…
Cancel
Save