add bitset operations and tests
[hiphop-php.git] / hphp / test / slow / ext_spl_iterators / UnexpectedValueException.php
blob9d7df0abb602265b15cd6ef033606d9b0345a64a
1 <?php
3 class RecursiveArrayIteratorIterator extends RecursiveIteratorIterator
6 function callGetChildren() {
7 return new StdClass();
11 try {
12 $arr = array(0, array(1));
13 foreach(new RecursiveArrayIteratorIterator(
14 new RecursiveArrayIterator($arr)) as $k=>$v) {
16 } catch(UnexpectedValueException $e) {
17 echo "UnexpectedValueException caught", PHP_EOL;