Skip to content

Commit 0716f54

Browse files
committed
Make ReflectionExtension_getClassNames_basic.phpt more robust against the addition of new classes
1 parent e4ed8e6 commit 0716f54

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

ext/reflection/tests/ReflectionExtension_getClassNames_basic.phpt

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@ Felix De Vliegher <felix.devliegher@gmail.com>
55
--FILE--
66
<?php
77
$standard = new ReflectionExtension('standard');
8-
var_dump($standard->getClassNames());
8+
$classNames = $standard->getClassNames();
9+
sort($classNames);
10+
foreach ($classNames as $className) {
11+
echo $className, PHP_EOL;
12+
}
913
?>
1014
--EXPECT--
11-
array(5) {
12-
[0]=>
13-
string(22) "__PHP_Incomplete_Class"
14-
[1]=>
15-
string(14) "AssertionError"
16-
[2]=>
17-
string(15) "php_user_filter"
18-
[3]=>
19-
string(12) "StreamBucket"
20-
[4]=>
21-
string(9) "Directory"
22-
}
15+
AssertionError
16+
Directory
17+
RoundingMode
18+
StreamBucket
19+
__PHP_Incomplete_Class
20+
php_user_filter

0 commit comments

Comments
 (0)