diff options
author | Xinchen Hui <laruence@php.net> | 2011-12-19 16:57:36 +0000 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2011-12-19 16:57:36 +0000 |
commit | 2fe9f37026cec08335100b9719b0fded3abc8a8e (patch) | |
tree | ad0fd32a08a7dcddcfdc10d2702e5d720d14d57b /tests | |
parent | 2f62602c03c08c9d6c83f0ec8755d480eb9af900 (diff) | |
download | php-git-2fe9f37026cec08335100b9719b0fded3abc8a8e.tar.gz |
Fix tests
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/lang/bug29566.phpt | 2 | ||||
-rw-r--r-- | tests/strings/offsets_chaining_5.phpt | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/tests/lang/bug29566.phpt b/tests/lang/bug29566.phpt index 5f292bd759..16aec8fc73 100755 --- a/tests/lang/bug29566.phpt +++ b/tests/lang/bug29566.phpt @@ -12,5 +12,7 @@ foreach($var['nosuchkey'] as $v) { ?> ===DONE=== --EXPECTF-- +Warning: Illegal string offset 'nosuchkey' in %sbug29566.php on line %d + Warning: Invalid argument supplied for foreach() in %sbug29566.php on line %d ===DONE=== diff --git a/tests/strings/offsets_chaining_5.phpt b/tests/strings/offsets_chaining_5.phpt index f0e27c2cfd..efcf2f3074 100644 --- a/tests/strings/offsets_chaining_5.phpt +++ b/tests/strings/offsets_chaining_5.phpt @@ -15,8 +15,13 @@ var_dump($array['expected_array']['foo']['bar']); --EXPECTF-- bool(true) string(6) "foobar" -bool(true) -string(1) "f" -bool(true) +bool(false) + +Warning: Illegal string offset 'foo' in %soffsets_chaining_5.php on line %d string(1) "f" +bool(false) + +Warning: Illegal string offset 'foo' in %soffsets_chaining_5.php on line %d +Warning: Illegal string offset 'bar' in %soffsets_chaining_5.php on line %d +string(1) "f" |