| Current Path : /hdd/hdd12/install/php/php-7.4.32/ext/reflection/tests/ |
| Current File : //hdd/hdd12/install/php/php-7.4.32/ext/reflection/tests/ReflectionClass_isAnonymous.phpt |
--TEST--
ReflectionClass::isAnonymous() method
--FILE--
<?php
class TestClass {}
$declaredClass = new ReflectionClass('TestClass');
$anonymousClass = new ReflectionClass(new class {});
var_dump($declaredClass->isAnonymous());
var_dump($anonymousClass->isAnonymous());
?>
--EXPECT--
bool(false)
bool(true)