]> granicus.if.org Git - php/commitdiff
- MFH Add new test
authorMarcus Boerger <helly@php.net>
Tue, 12 Aug 2008 11:24:24 +0000 (11:24 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 12 Aug 2008 11:24:24 +0000 (11:24 +0000)
Zend/tests/ns_068.phpt [new file with mode: 0644]

diff --git a/Zend/tests/ns_068.phpt b/Zend/tests/ns_068.phpt
new file mode 100644 (file)
index 0000000..97e4356
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+068: Code before namespace
+--FILE--
+<?php
+echo __NAMESPACE__ . "\n";
+namespace foo;
+echo __NAMESPACE__ . "\n";
+namespace bar;
+echo __NAMESPACE__ . "\n";
+?>
+===DONE===
+--EXPECTF--
+
+Fatal error: Namespace declaration statement has to be the very first statement in the script in %sns_068.php on line %d