summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_077_3.phpt
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2008-11-11 19:44:16 +0000
committerStanislav Malyshev <stas@php.net>2008-11-11 19:44:16 +0000
commitcaa133b3d36ea1fdf3bfbc3da6d8406c2d962862 (patch)
tree28893fc7d421e6bfe55d7c856946d226606a3fbb /Zend/tests/ns_077_3.phpt
parenta2556b1f1c00967e25c10c3e98bfa300f2ce86e5 (diff)
downloadphp-git-caa133b3d36ea1fdf3bfbc3da6d8406c2d962862.tar.gz
some new tests
Diffstat (limited to 'Zend/tests/ns_077_3.phpt')
-rwxr-xr-xZend/tests/ns_077_3.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/ns_077_3.phpt b/Zend/tests/ns_077_3.phpt
new file mode 100755
index 0000000000..bdeb7924e6
--- /dev/null
+++ b/Zend/tests/ns_077_3.phpt
@@ -0,0 +1,13 @@
+--TEST--
+077: Unknown compile-time constants in namespace
+--FILE--
+<?php
+namespace foo;
+
+function foo($a = array(namespace\unknown => unknown))
+{
+}
+
+foo();
+--EXPECTF--
+Fatal error: Undefined constant 'foo\unknown' in %sns_077_%d.php on line %d