summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_068.phpt
blob: b6dc258fd3a3f40b632ca8762aee8526fdc4bc49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 or after any declare call in the script in %sns_068.php on line %d