1--TEST--
2Testing constants (normal, namespace, class and interface)
3--FILE--
4<?php
5
6namespace foo;
7
8define('foo', 3);
9
10const foo = 1;
11
12class foo {
13	const foo = 2;
14}
15
16interface Ifoo {
17	const foo = 4;
18}
19
20$const  = __NAMESPACE__ .'\\foo';  // class
21$const2 = __NAMESPACE__ .'\\Ifoo'; // interface
22
23var_dump(	foo,
24			\foo\foo,
25			namespace\foo,
26			\foo\foo::foo,
27			$const::foo,
28			\foo,
29			constant('foo'),
30			Ifoo::foo,
31			$const2::foo
32			);
33
34?>
35--EXPECT--
36int(1)
37int(1)
38int(1)
39int(2)
40int(2)
41int(3)
42int(3)
43int(4)
44int(4)
45