php-src/ext/spl/tests/bug36825.phpt

27 lines
327 B
Plaintext
Raw Normal View History

2006-03-22 23:10:59 +00:00
--TEST--
Bug #36825 ()
--FILE--
<?php
class foo extends ArrayObject {
public function __construct() {
}
public function offsetGet($key) {
throw new Exception("hi");
}
}
$test=new foo();
try{
var_dump($test['bar']);
} catch (Exception $e) {
echo "got exception\n";
}
echo "Done\n";
?>
--EXPECT--
got exception
Done