xref: /PHP-5.3/Zend/tests/ns_068.phpt (revision d8530cc8)
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 in the script in %sns_068.php on line %d
15