![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: SPL: AppendIterator::__construct(void) 3: --CREDITS-- 4: Sebastian Schürmann 5: --FILE-- 6: <?php 7: class myAppendIterator extends AppendIterator {} 8: try { 9: $it = new myAppendIterator(); 10: echo "no exception"; 11: } catch (InvalidArgumentException $e) { 12: echo 'InvalidArgumentException thrown'; 13: } 14: ?> 15: --EXPECT-- 16: no exception