xref: /PHP-7.3/Zend/tests/ns_068.phpt (revision b746e698)
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--
13Fatal 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
14