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 | 8e0358d2b440bfc93052544f61a1ca72ed010974 (patch) | |
| tree | 169fd1fb33926a582f9d97283c3b13526e468b00 | |
| parent | c1d5a5d7ef24546bc272873348ee522da6a54f88 (diff) | |
| download | php-git-8e0358d2b440bfc93052544f61a1ca72ed010974.tar.gz | |
Fix 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" |
