From 4ade5fdbb2f9baa72abb36401b22ff087c7ebacf Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Wed, 7 Jun 2017 18:26:58 -0700 Subject: [PATCH] Fix sniff issues, exclude 'cases' test files from codesniff --- phpcs.xml.dist | 1 + src/ParserHelpers.php | 2 +- tests/Validation/ValidationTest.php | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index e67104b..f65f4fc 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -2,6 +2,7 @@ src tests + tests/Validation/cases diff --git a/src/ParserHelpers.php b/src/ParserHelpers.php index d687d49..5025ae3 100644 --- a/src/ParserHelpers.php +++ b/src/ParserHelpers.php @@ -121,4 +121,4 @@ function isConstDefineExpression(Node $node): bool && isset($node->argumentExpressionList->children[0]) && $node->argumentExpressionList->children[0]->expression instanceof Node\StringLiteral && isset($node->argumentExpressionList->children[2]); -} \ No newline at end of file +} diff --git a/tests/Validation/ValidationTest.php b/tests/Validation/ValidationTest.php index 0142fdf..1973841 100644 --- a/tests/Validation/ValidationTest.php +++ b/tests/Validation/ValidationTest.php @@ -43,8 +43,8 @@ class ValidationTest extends TestCase } /** - * This test loads the test cases specified in .php files under cases/ and looks at the whole set of - * Definitions and References produced. It reads the expected results from associated .json files + * This test loads the test cases specified in .php files under cases/ and looks at the whole set of + * Definitions and References produced. It reads the expected results from associated .json files * and compares to the actual result. If they don't match, the test fails and it writes the new baseline * to the .json file. * @group validation