summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_trailing_comma_error_07.phpt
diff options
context:
space:
mode:
authorSammy Kaye Powers <sammyk@sammykmedia.com>2017-04-20 13:08:11 -0500
committerNikita Popov <nikita.ppv@gmail.com>2017-05-01 12:19:47 +0200
commit12300f465e5bed1fa7d0bc445aef68b6a2753c3b (patch)
treee9ce7dff42c5c16ac2f273b30b0496d07f98c7b8 /Zend/tests/ns_trailing_comma_error_07.phpt
parent1f42a50840e7462a4c1ad94a32730baee9ecf707 (diff)
downloadphp-git-12300f465e5bed1fa7d0bc445aef68b6a2753c3b.tar.gz
Add trailing comma syntax support for mixed and unmixed group use lists
RFC: https://wiki.php.net/rfc/list-syntax-trailing-commas
Diffstat (limited to 'Zend/tests/ns_trailing_comma_error_07.phpt')
-rw-r--r--Zend/tests/ns_trailing_comma_error_07.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zend/tests/ns_trailing_comma_error_07.phpt b/Zend/tests/ns_trailing_comma_error_07.phpt
new file mode 100644
index 0000000000..c60dd6a4b0
--- /dev/null
+++ b/Zend/tests/ns_trailing_comma_error_07.phpt
@@ -0,0 +1,8 @@
+--TEST--
+Unmixed group use declarations mustn't begin with a comma
+--FILE--
+<?php
+use function Baz\{,Foo};
+?>
+--EXPECTF--
+Parse error: syntax error, unexpected ',', expecting identifier (T_STRING) in %s on line %d \ No newline at end of file