- Fix tests due to changes in the error messages.

# Also nuked some CRLF's
This commit is contained in:
foobar 2005-09-15 19:49:58 +00:00
parent 7199bc5f86
commit ae281c372a
7 changed files with 7 additions and 6 deletions

View File

@ -12,4 +12,4 @@ foo(123);
--EXPECTF--
3
Fatal error: Argument 1 must be an array, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2
Fatal error: Argument 1 passed to foo() must be an array, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2

View File

@ -39,5 +39,5 @@ echo "Done\n";
2
3
Done
test::__destruct
test::destructor
test::__destruct

View File

@ -26,4 +26,4 @@ FooTest(new Foo());
--EXPECTF--
Warning: Missing argument 1 for NormalTest(), called in %sbug33996.php on line 17 and defined in %sbug33996.php on line 12
Hi!
Fatal error: Argument 1 must be an object of class Foo, called in %sbug33996.php on line 18 and defined in %sbug33996.php on line 7
Fatal error: Argument 1 passed to FooTest() must be an object of class Foo, called in %sbug33996.php on line 18 and defined in %sbug33996.php on line 7

View File

@ -15,3 +15,4 @@ if(!$kids) echo "ok\n"; else echo "bug\n";
bool(false)
ok
ok

View File

@ -35,4 +35,4 @@ $a->b($b);
?>
--EXPECTF--
Fatal error: Argument 1 must implement interface Foo, called in %s on line 27 and defined in %s on line 12
Fatal error: Argument 1 passed to FooBar::a() must implement interface Foo, called in %s on line 27 and defined in %s on line 12

View File

@ -53,4 +53,4 @@ int(2)
object(foo)#%d (0) {
}
Fatal error: Argument 1 must be an object of class foo in %s on line %d
Fatal error: Argument 1 passed to typehint() must be an object of class foo in %s on line %d

View File

@ -23,4 +23,4 @@ type_hint_foo($bar);
?>
--EXPECTF--
Fatal error: Argument 1 must be an instance of Foo, called in %s on line 16 and defined in %s on line 9
Fatal error: Argument 1 passed to type_hint_foo() must be an instance of Foo, called in %s on line 16 and defined in %s on line 9