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