1--TEST--
2ReflectionClass::isAnonymous() method
3--FILE--
4<?php
5
6class TestClass {}
7
8$declaredClass = new ReflectionClass('TestClass');
9$anonymousClass = new ReflectionClass(new class {});
10
11var_dump($declaredClass->isAnonymous());
12var_dump($anonymousClass->isAnonymous());
13
14?>
15--EXPECT--
16bool(false)
17bool(true)
18