summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPayton Swick <payton@foolord.com>2017-10-26 12:20:53 -0400
committerPayton Swick <payton@foolord.com>2017-10-26 12:22:34 -0400
commit40f5e541984f7520aab6f627620ed4823ab8943b (patch)
tree4009732c5f7a6f17fd9e7017664d8c86516a4e9a /test
parentaca66a54a5876eb9979e004742be6a8863c5cdf8 (diff)
downloadale-40f5e541984f7520aab6f627620ed4823ab8943b.zip
Add test for phpcs error code
Diffstat (limited to 'test')
-rw-r--r--test/test_phpcs_include_code.vader7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_phpcs_include_code.vader b/test/test_phpcs_include_code.vader
new file mode 100644
index 00000000..1cff1916
--- /dev/null
+++ b/test/test_phpcs_include_code.vader
@@ -0,0 +1,7 @@
+Execute(errors should include code):
+ AssertEqual
+ \ [{'lnum': 18, 'col': 3, 'type': 'E', 'text': 'Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)'}],
+ \ ale_linters#php#phpcs#Handle(bufnr(''), [
+ \ '/path/to/some-filename.php:18:3: error - Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)',
+ \ ])
+