diff options
Diffstat (limited to 'ext/spl/tests/array_021.phpt')
-rwxr-xr-x | ext/spl/tests/array_021.phpt | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/ext/spl/tests/array_021.phpt b/ext/spl/tests/array_021.phpt deleted file mode 100755 index b38cedf0cd..0000000000 --- a/ext/spl/tests/array_021.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -SPL: ArrayObject::seek() and exceptions ---SKIPIF-- -<?php if (!extension_loaded("spl")) print "skip"; ?> ---FILE-- -<?php - -class foo extends ArrayObject -{ - public function seek($key) - { - echo __METHOD__ . "($key)\n"; - throw new Exception("hi"); - } -} - -$test = new foo(array(1,2,3)); - -try -{ - $test->seek('bar'); -} -catch (Exception $e) -{ - echo "got exception\n"; -} - -?> -===DONE=== ---EXPECT-- -foo::seek(bar) -got exception -===DONE=== |