From dd693811df212eafaaece485b107babc7eb4d467 Mon Sep 17 00:00:00 2001 From: Damian Taggart <4309872+attackant@users.noreply.github.com> Date: Mon, 30 Oct 2023 12:14:50 -0600 Subject: [PATCH] "Update composer script for testing Added new script 'test' to composer.json file. This script combines two existing scripts, 'phpcs' and 'phpunit', making it more efficient to run both scripts for testing. Also, 'phpcs' script has been updated with '--basepath=.' argument to set the base directory for relative paths." --- composer.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 948c07b6..f69ebc83 100644 --- a/composer.json +++ b/composer.json @@ -15,8 +15,12 @@ }, "scripts": { "phpcbf" : "phpcbf .", - "phpcs" : "phpcs .", - "phpunit" : "phpunit" + "phpcs" : "phpcs . --basepath=.", + "phpunit" : "phpunit", + "test": [ + "@phpcs", + "@phpunit" + ] }, "config": { "allow-plugins": {