From a22f23cc10efb3707552eb50f52d3790b43bcc72 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Fri, 23 Dec 2022 00:27:03 -0300 Subject: [PATCH] test: adding phpUnit --- Makefile | 3 +++ composer.json | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 39a3625..80a2d90 100644 --- a/Makefile +++ b/Makefile @@ -8,3 +8,6 @@ install: uninstall: rm -f ./.git/hooks/pre-push if [ -d "./vendor/phpunit" ] ; then composer remove --dev phpunit/phpunit; fi + +check: + gaze '{src,tests}/**/*.php' -c "./vendor/phpunit/phpunit/phpunit --bootstrap vendor/autoload.php tests --testdox --color" diff --git a/composer.json b/composer.json index 026d73f..a5b2806 100644 --- a/composer.json +++ b/composer.json @@ -2,6 +2,7 @@ "name": "brunofontes/memsource-api", "description": "A personal memsource api to better understand how it works", "license": "GPL-3.0-or-later", + "version": "1.2", "authors": [ { "name": "Bruno F. Fontes", @@ -22,5 +23,6 @@ } ], "require-dev": { + "phpunit/phpunit": "^8" } }