xref: /PHP-7.2/ext/reflection/tests/bug77772.phpt (revision da35fa2c)
1--TEST--
2Bug #77772: ReflectionClass::getMethods(null) doesn't work
3--FILE--
4<?php
5
6class Test {
7    public $prop;
8    public function method() {}
9}
10
11$rc = new ReflectionClass(Test::class);
12foreach ($rc->getMethods(null) as $method) {
13    var_dump($method->getName());
14}
15foreach ($rc->getProperties(null) as $prop) {
16    var_dump($prop->getName());
17}
18
19?>
20--EXPECT--
21string(6) "method"
22string(4) "prop"
23