1--TEST-- 2ReflectionClass::isIterateable() variations 3--CREDITS-- 4Felix De Vliegher <felix.devliegher@gmail.com> 5--FILE-- 6<?php 7 8class BasicClass {} 9 10function dump_iterateable($obj) 11{ 12 $reflection = new ReflectionClass($obj); 13 var_dump($reflection->isIterateable()); 14} 15 16$basicClass = new BasicClass(); 17$stdClass = new StdClass(); 18 19dump_iterateable($basicClass); 20dump_iterateable($stdClass); 21 22?> 23--EXPECT-- 24bool(false) 25bool(false) 26