@@ -5,28 +5,28 @@ ReflectionConstant::getFileName()
5
5
6
6
include "included5.inc " ;
7
7
8
- function testConstant ( string $ name ): void {
9
- $ ref = new ReflectionConstant ( $ name );
8
+ function testConstant (string $ name ): void {
9
+ $ ref = new ReflectionConstant ($ name );
10
10
echo "$ name: " ;
11
- var_dump ( $ ref ->getFileName () );
11
+ var_dump ($ ref ->getFileName ());
12
12
}
13
13
14
14
define ('IN_CURRENT_FILE_DEFINED ' , 42 );
15
15
const IN_CURRENT_FILE_AST = 123 ;
16
16
17
17
echo "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 ' );
22
22
23
23
echo "\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 ' );
26
26
27
27
echo "\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 ' );
30
30
?>
31
31
--EXPECTF--
32
32
From PHP:
@@ -41,4 +41,4 @@ IN_CURRENT_FILE_AST: string(%d) "%sReflectionConstant_getFileName.php"
41
41
42
42
From an included file:
43
43
INCLUDED_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