test: adding phpUnit

This commit is contained in:
Bruno F. Fontes 2022-12-23 00:27:03 -03:00
parent adfea614ad
commit a22f23cc10
Signed by: brunofontes
GPG Key ID: 4DAA810052CF68B6
2 changed files with 5 additions and 0 deletions

View File

@ -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"

View File

@ -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"
}
}