xref: /PHP-7.4/Zend/tests/constants_006.phpt (revision 7126de49)
1--TEST--
2Magic constants lowercased
3--FILE--
4<?php
5
6namespace test;
7
8var_dump(__dir__);
9var_dump(__file__);
10var_dump(__line__);
11
12class foo {
13	public function __construct() {
14		var_dump(__method__);
15		var_dump(__class__);
16		var_dump(__function__);
17	}
18}
19
20new foo;
21
22var_dump(__namespace__);
23
24?>
25--EXPECTF--
26string(%d) "%s"
27string(%d) "%s"
28int(%d)
29string(21) "test\foo::__construct"
30string(8) "test\foo"
31string(11) "__construct"
32string(4) "test"
33