From 6e7c8c4fede3dba3845f6a31d98746646b9831dc Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sun, 13 Feb 2022 01:39:22 +0100 Subject: tests: add failing test for incomplete arguments --- tests/indent/php_spec.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/indent/php_spec.lua') diff --git a/tests/indent/php_spec.lua b/tests/indent/php_spec.lua index e2655b83f..722f5c0b8 100644 --- a/tests/indent/php_spec.lua +++ b/tests/indent/php_spec.lua @@ -1,4 +1,5 @@ local Runner = require("tests.indent.common").Runner +local XFAIL = require("tests.indent.common").XFAIL local run = Runner:new(it, "tests/indent/php", { tabstop = 4, @@ -10,7 +11,9 @@ local run = Runner:new(it, "tests/indent/php", { describe("indent PHP:", function() describe("whole file:", function() run:whole_file(".", { - expected_failures = {}, + expected_failures = { + "./unfinished-call.php", + }, }) end) @@ -21,5 +24,6 @@ describe("indent PHP:", function() { 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 }) + run:new_line("unfinished-call.php", { on_line = 6, text = "$a =", indent = 4 }, "shouldn't be 0", XFAIL) end) end) -- cgit v1.2.3-70-g09d2