aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/php_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/php_spec.lua')
-rw-r--r--tests/indent/php_spec.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/indent/php_spec.lua b/tests/indent/php_spec.lua
new file mode 100644
index 000000000..f081c3a22
--- /dev/null
+++ b/tests/indent/php_spec.lua
@@ -0,0 +1,20 @@
+local Runner = require("tests.indent.common").Runner
+
+local run = Runner:new(it, "tests/indent/php", {
+ tabstop = 4,
+ shiftwidth = 4,
+ softtabstop = 0,
+ expandtab = true,
+})
+
+describe("indent PHP:", function()
+ describe("whole file:", function()
+ run:whole_file(".", {
+ expected_failures = {},
+ })
+ end)
+
+ describe("new line:", function()
+ run:new_line("example.php", { on_line = 11, text = "// new line starts 1 indentation to far", indent = 4 })
+ end)
+end)