mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
- Fix tests due to changes in the error messages.
# Also nuked some CRLF's
This commit is contained in:
parent
7199bc5f86
commit
ae281c372a
@ -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
|
||||
|
@ -39,5 +39,5 @@ echo "Done\n";
|
||||
2
|
||||
3
|
||||
Done
|
||||
test::__destruct
|
||||
test::destructor
|
||||
test::__destruct
|
||||
|
@ -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
|
||||
|
@ -15,3 +15,4 @@ if(!$kids) echo "ok\n"; else echo "bug\n";
|
||||
bool(false)
|
||||
ok
|
||||
ok
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user