From b85eb277fc037bf3132da636602b1689e523dba6 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Wed, 10 May 2006 21:12:31 +0000 Subject: [PATCH] - Fix tests --- tests/classes/interfaces_003.phpt | 13 +++---------- tests/classes/tostring_003.phpt | 4 +--- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/tests/classes/interfaces_003.phpt b/tests/classes/interfaces_003.phpt index fa2cb7317f..2c4c7e7c94 100755 --- a/tests/classes/interfaces_003.phpt +++ b/tests/classes/interfaces_003.phpt @@ -7,27 +7,20 @@ class MyObject {} interface MyInterface { - public function __construct(Object $o); + public function __construct(MyObject $o); } class MyTestClass implements MyInterface { - public function __construct(Object $o) + public function __construct(MyObject $o) { } } $obj = new MyTestClass; -class MyTestFail -{ - public function __construct() - { - } -} - ?> ===DONE=== --EXPECTF-- -Catchable fatal error: Argument 1 passed to MyTestClass::__construct() must be an object of class Object, called in %sinterfaces_003.php on line %d +Catchable fatal error: Argument 1 passed to MyTestClass::__construct() must be an object of class MyObject, called in %sinterfaces_003.php on line %d diff --git a/tests/classes/tostring_003.phpt b/tests/classes/tostring_003.phpt index 23a4fe524c..8815bd9407 100755 --- a/tests/classes/tostring_003.phpt +++ b/tests/classes/tostring_003.phpt @@ -1,7 +1,5 @@ --TEST-- ZE2 __toString() in __destruct/exception ---SKIPIF-- - --FILE-- ====DONE==== --EXPECTF-- -Fatal error: Object of class Test could not be converted to string in %stostring_003.php on line %d +Fatal error: Method Test::__toString() must not throw an exception in %stostring_003.php on line %d -- 2.50.1