summaryrefslogtreecommitdiff
path: root/tests/test_trailing_closing_array_bracket/code.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-05-01 17:52:50 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-05-01 17:55:59 +0200
commitec389d3441953bbd7cb27f59df61531ba856fb33 (patch)
treefc642e218ba83860c425464da0c12493e97f40e8 /tests/test_trailing_closing_array_bracket/code.php
parent6e86cd0f381de60f77845ea4a7b6cbcc5fda4a47 (diff)
downloadste-ec389d3441953bbd7cb27f59df61531ba856fb33.tar.gz
ste-ec389d3441953bbd7cb27f59df61531ba856fb33.tar.bz2
ste-ec389d3441953bbd7cb27f59df61531ba856fb33.zip
Fix parsing `]` as last input char
Previously ] was duplicated in the ouput
Diffstat (limited to 'tests/test_trailing_closing_array_bracket/code.php')
-rw-r--r--tests/test_trailing_closing_array_bracket/code.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_trailing_closing_array_bracket/code.php b/tests/test_trailing_closing_array_bracket/code.php
new file mode 100644
index 0000000..77f48be
--- /dev/null
+++ b/tests/test_trailing_closing_array_bracket/code.php
@@ -0,0 +1,12 @@
+<?php
+
+use kch42\ste\STECore;
+
+function test_func(STECore $ste)
+{
+ $ste->set_var_by_name("foo", array(
+ "foo",
+ "bar",
+ "baz",
+ ));
+}