diff options
Diffstat (limited to 'ext/spl/tests/array_014.phpt')
| -rwxr-xr-x | ext/spl/tests/array_014.phpt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ext/spl/tests/array_014.phpt b/ext/spl/tests/array_014.phpt index 8accd97dfc..ad9bc6c4ac 100755 --- a/ext/spl/tests/array_014.phpt +++ b/ext/spl/tests/array_014.phpt @@ -11,8 +11,16 @@ $it->seek(5); var_dump($it->current()); $it->seek(4); var_dump($it->current()); -$it->seek(-1); -var_dump($it->current()); +try +{ + $it->seek(-1); + var_dump($it->current()); +} +catch(Exception $e) +{ + echo $e->getMessage() . "\n"; +} + try { $it->seek(12); @@ -37,7 +45,7 @@ foreach($it as $v) int(11) int(5) int(4) -int(0) +Seek position -1 is out of range Seek position 12 is out of range int(0) int(1) |
