From bb171e2edcf243eb7d6614dbf1eddd6176b6f438 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A1rcio=20Almada?= Date: Mon, 19 Jan 2015 02:21:11 -0300 Subject: [PATCH] add tests for batch use declarations with classes, functions and constants --- Zend/tests/ns_088.phpt | 26 ++++++++++++++++++++ Zend/tests/ns_089.phpt | 56 ++++++++++++++++++++++++++++++++++++++++++ Zend/tests/ns_090.phpt | 48 ++++++++++++++++++++++++++++++++++++ Zend/tests/ns_091.phpt | 20 +++++++++++++++ 4 files changed, 150 insertions(+) create mode 100644 Zend/tests/ns_088.phpt create mode 100644 Zend/tests/ns_089.phpt create mode 100644 Zend/tests/ns_090.phpt create mode 100644 Zend/tests/ns_091.phpt diff --git a/Zend/tests/ns_088.phpt b/Zend/tests/ns_088.phpt new file mode 100644 index 0000000000..008d35820a --- /dev/null +++ b/Zend/tests/ns_088.phpt @@ -0,0 +1,26 @@ +--TEST-- +Nested batch use statements syntax error +--FILE-- + +--EXPECTF-- +Parse error: syntax error, unexpected '{', expecting ',' or '}' in %sns_088.php on line 14 diff --git a/Zend/tests/ns_089.phpt b/Zend/tests/ns_089.phpt new file mode 100644 index 0000000000..e0b066c5ac --- /dev/null +++ b/Zend/tests/ns_089.phpt @@ -0,0 +1,56 @@ +--TEST-- +Batch use statements +--FILE-- +