aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/indent/php/issue-2497.php14
-rw-r--r--tests/indent/php_spec.lua1
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/indent/php/issue-2497.php b/tests/indent/php/issue-2497.php
new file mode 100644
index 000000000..2da7d3a73
--- /dev/null
+++ b/tests/indent/php/issue-2497.php
@@ -0,0 +1,14 @@
+<?php
+
+use Illuminate\Support\Facades\Route;
+
+Route::get('/', function () {
+ return view('welcome');
+});
+
+Route::get(
+ '/',
+ 1,
+ aaaaaaaaaaaaaaaaaaaaaaaaa,
+ 2
+);
diff --git a/tests/indent/php_spec.lua b/tests/indent/php_spec.lua
index 0620c5ea6..e2655b83f 100644
--- a/tests/indent/php_spec.lua
+++ b/tests/indent/php_spec.lua
@@ -20,5 +20,6 @@ describe("indent PHP:", function()
"example2.php",
{ on_line = 5, text = "indendation with `enter` in insert mode is not correct", indent = 4 }
)
+ run:new_line("issue-2497.php", { on_line = 5, text = "$a =", indent = 4 })
end)
end)