mirror of
https://github.com/php/php-src.git
synced 2024-12-17 22:09:12 +08:00
26 lines
429 B
PHP
26 lines
429 B
PHP
--TEST--
|
|
ReflectionClass::isIterateable() variations
|
|
--CREDITS--
|
|
Felix De Vliegher <felix.devliegher@gmail.com>
|
|
--FILE--
|
|
<?php
|
|
|
|
class BasicClass {}
|
|
|
|
function dump_iterateable($obj)
|
|
{
|
|
$reflection = new ReflectionClass($obj);
|
|
var_dump($reflection->isIterateable());
|
|
}
|
|
|
|
$basicClass = new BasicClass();
|
|
$stdClass = new StdClass();
|
|
|
|
dump_iterateable($basicClass);
|
|
dump_iterateable($stdClass);
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(false)
|