diff options
author | Felipe Pena <felipe@php.net> | 2008-05-12 17:55:21 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-05-12 17:55:21 +0000 |
commit | 5790b80c53fc7e8a571906872cd127de46cfaecd (patch) | |
tree | 472dc2c7ad239d2900d10b9461796995df07033b /Zend/tests/constants_003.phpt | |
parent | 30eca098e4df4f0852895bb357b59c8e0308df50 (diff) | |
download | php-git-5790b80c53fc7e8a571906872cd127de46cfaecd.tar.gz |
- New tests
Diffstat (limited to 'Zend/tests/constants_003.phpt')
-rw-r--r-- | Zend/tests/constants_003.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Zend/tests/constants_003.phpt b/Zend/tests/constants_003.phpt new file mode 100644 index 0000000000..ec3eb6d4ff --- /dev/null +++ b/Zend/tests/constants_003.phpt @@ -0,0 +1,21 @@ +--TEST-- +Using namespace constants and constants of global scope +--FILE-- +<?php + +namespace foo; + +const foo = 1; + +define('foo', 2); + +var_dump(foo, namespace::foo, foo::foo, ::foo, constant('foo'), constant('foo::foo')); + +?> +--EXPECT-- +int(1) +int(1) +int(1) +int(2) +int(2) +int(1) |