xref: /PHP-7.1/Zend/tests/ns_083.phpt (revision 1f65006f)
1--TEST--
2083: bracketed namespace with junk before the ns declaration
3--FILE--
4<?php
5$a = 'oops';
6echo $a;
7namespace foo {
8}
9namespace ok {
10echo "ok\n";
11}
12?>
13--EXPECTF--
14Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in %sns_083.php on line %d
15