]> granicus.if.org Git - php/commitdiff
add explicit tests for variations on whitespace usages
authorMárcio Almada <marcio3w@gmail.com>
Wed, 11 Feb 2015 21:58:45 +0000 (18:58 -0300)
committerMárcio Almada <marcio3w@gmail.com>
Sat, 7 Mar 2015 20:59:48 +0000 (17:59 -0300)
Zend/tests/ns_093.phpt [new file with mode: 0644]

diff --git a/Zend/tests/ns_093.phpt b/Zend/tests/ns_093.phpt
new file mode 100644 (file)
index 0000000..cc82bd4
--- /dev/null
@@ -0,0 +1,27 @@
+--TEST--
+Batch use declarations and whitespace nuances
+--FILE--
+<?php
+
+// should not throw syntax errors
+
+use Foo\Bar     \{ A };
+
+use Foo\Bar\    { B };
+
+use Foo\Bar
+\{
+    C
+};
+
+use Foo\Bar\
+{
+    D
+};
+
+echo "\nDone\n";
+
+
+--EXPECTF--
+
+Done
\ No newline at end of file