xref: /PHP-7.0/Zend/tests/ns_068.phpt (revision 1f65006f)
1--TEST--
2068: Code before namespace
3--FILE--
4<?php
5echo __NAMESPACE__ . "\n";
6namespace foo;
7echo __NAMESPACE__ . "\n";
8namespace bar;
9echo __NAMESPACE__ . "\n";
10?>
11===DONE===
12--EXPECTF--
13
14Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in %sns_068.php on line %d
15