summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_048.phpt
blob: db21f89103b0f90074b489deee3abd5146eb74e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
048: __NAMESPACE__ constant and runtime names (ns name)
--FILE--
<?php
namespace test\ns1;

const FOO = 0;

var_dump(constant(__NAMESPACE__ . "\\FOO"));
--EXPECT--
int(0)