@@ -5,28 +5,28 @@ ReflectionConstant::getFileName()
55
66include "included5.inc " ;
77
8- function testConstant ( string $ name ): void {
9- $ ref = new ReflectionConstant ( $ name );
8+ function testConstant (string $ name ): void {
9+ $ ref = new ReflectionConstant ($ name );
1010 echo "$ name: " ;
11- var_dump ( $ ref ->getFileName () );
11+ var_dump ($ ref ->getFileName ());
1212}
1313
1414define ('IN_CURRENT_FILE_DEFINED ' , 42 );
1515const IN_CURRENT_FILE_AST = 123 ;
1616
1717echo "From PHP: \n" ;
18- testConstant ( 'PHP_VERSION ' );
19- testConstant ( 'STDIN ' );
20- testConstant ( 'STDOUT ' );
21- testConstant ( 'STDERR ' );
18+ testConstant ('PHP_VERSION ' );
19+ testConstant ('STDIN ' );
20+ testConstant ('STDOUT ' );
21+ testConstant ('STDERR ' );
2222
2323echo "\nFrom the current file: \n" ;
24- testConstant ( 'IN_CURRENT_FILE_DEFINED ' );
25- testConstant ( 'IN_CURRENT_FILE_AST ' );
24+ testConstant ('IN_CURRENT_FILE_DEFINED ' );
25+ testConstant ('IN_CURRENT_FILE_AST ' );
2626
2727echo "\nFrom an included file: \n" ;
28- testConstant ( 'INCLUDED_CONSTANT_DEFINED ' );
29- testConstant ( 'INCLUDED_CONSTANT_AST ' );
28+ testConstant ('INCLUDED_CONSTANT_DEFINED ' );
29+ testConstant ('INCLUDED_CONSTANT_AST ' );
3030?>
3131--EXPECTF--
3232From PHP:
@@ -41,4 +41,4 @@ IN_CURRENT_FILE_AST: string(%d) "%sReflectionConstant_getFileName.php"
4141
4242From an included file:
4343INCLUDED_CONSTANT_DEFINED: string(%d) "%sincluded5.inc"
44- INCLUDED_CONSTANT_AST: string(%d) "%sincluded5.inc"
44+ INCLUDED_CONSTANT_AST: string(%d) "%sincluded5.inc"
0 commit comments