diff --git a/makefile b/makefile index e1db21b..3592ae5 100644 --- a/makefile +++ b/makefile @@ -86,4 +86,9 @@ php-cs-fixer-allow-risky: $(EXEC_PHP_CS_FIXER) fix --config=.php-cs-fixer.dist.php --allow-risky=yes $(FILES) wait: - sleep 10 \ No newline at end of file + sleep 10 + +# Lance la suite PHPUnit. Usage : make test (tout) +# make test FILES= (un fichier/dossier) +test: + $(EXEC_PHP) php vendor/bin/phpunit $(FILES) \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..08d857e --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,19 @@ + + + + + tests/Unit + + + + + src + + + diff --git a/tests/Unit/.gitkeep b/tests/Unit/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000..e9dd915 --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,5 @@ +