diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -1,2 +1,7 @@ +all: vendor + +vendor: + composer install + test: - phpunit tests/coreTest + vendor/bin/phpunit diff --git a/composer.json b/composer.json --- a/composer.json +++ b/composer.json @@ -18,6 +18,9 @@ "require": { "php": ">=5.4.0" }, + "require-dev": { + "phpunit/phpunit": "^7" + }, "autoload": { "files": ["core.php"] }, diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,22 @@ + + + + + + + + + + ./tests + + + + + core.php + + + diff --git a/tests/coreTest.php b/tests/coreTest.php --- a/tests/coreTest.php +++ b/tests/coreTest.php @@ -2,8 +2,6 @@ namespace Keruald; -require 'core.php'; - class CoreTest extends \PHPUnit\Framework\TestCase { ///