From d1154d2232a7dc2e84bb5f5811f90085f9e126d5 Mon Sep 17 00:00:00 2001 From: Olle Haerstedt Date: Wed, 24 Feb 2021 17:23:34 +0100 Subject: [PATCH] Dev: Also check syntax in tests/ --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 9028f26d6f6..bc51acf3434 100644 --- a/composer.json +++ b/composer.json @@ -47,6 +47,7 @@ "scripts": { "test": [ "! find application/ -type f -name '*.php' -print0 | xargs -I {} -0 -P 0 php -l {} | grep -v 'No syntax error'", + "! find tests/ -type f -name '*.php' -print0 | xargs -I {} -0 -P 0 php -l {} | grep -v 'No syntax error'", "./third_party/bin/phpcs --standard=tests/rulesets/phpcs_ruleset.xml application/models/services", "./third_party/bin/phpmd application/models/services/ text tests/rulesets/phpmd_ruleset.xml", "./third_party/bin/psalm application/models/services/"