diff options
| author | Marcus Boerger <helly@php.net> | 2008-08-12 11:24:24 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2008-08-12 11:24:24 +0000 |
| commit | d8530cc8a9e14bcf25875257db7a1348d38148c9 (patch) | |
| tree | d32839aced14a641ea2b12b46643bb216035971b | |
| parent | ce5c43a1ed79a8d73e32358e9520d182ae8f1be6 (diff) | |
| download | php-git-d8530cc8a9e14bcf25875257db7a1348d38148c9.tar.gz | |
- MFH Add new test
| -rw-r--r-- | Zend/tests/ns_068.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/ns_068.phpt b/Zend/tests/ns_068.phpt new file mode 100644 index 0000000000..97e43568e5 --- /dev/null +++ b/Zend/tests/ns_068.phpt @@ -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 |
