xref: /PHP-5.5/Zend/tests/inter_02.phpt (revision 7126de49)
1--TEST--
2Namespace constant as value default
3--FILE--
4<?php
5
6namespace foo;
7
8error_reporting(E_ALL);
9
10interface foo {
11    const foo = 2;
12}
13
14function foo($x = \foo\foo::foo) {
15    var_dump($x);
16}
17
18foo();
19?>
20--EXPECT--
21int(2)
22