From dad8bcaa76c252c0fd0accda76bb1b1bd525337f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gamez?= Date: Sun, 17 Mar 2024 10:16:01 +0100 Subject: [PATCH] Add composer scripts for testing --- composer.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a25836f..3257846 100644 --- a/composer.json +++ b/composer.json @@ -35,5 +35,18 @@ "type": "github", "url": "https://github.com/sponsors/jeromegamez" } - ] + ], + "scripts": { + "analyse": [ + "XDEBUG_MODE=off vendor/bin/phpstan" + ], + "analyze": "@analyse", + "test": [ + "@analyze", + "@test-units" + ], + "test-units": [ + "vendor/bin/phpunit --testdox" + ] + } }