From 6a73da30a7ef85c14167215478f225a151ab17ea Mon Sep 17 00:00:00 2001 From: Maxime Veber Date: Thu, 20 Dec 2018 19:09:49 +0100 Subject: [PATCH] Add PHPUnit to travis conf --- .travis.yml | 3 +++ composer.json | 8 ++++++-- phpunit.xml | 20 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 phpunit.xml diff --git a/.travis.yml b/.travis.yml index 02fcdd7..d72a3de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,8 @@ php: - 5.6 - 7.0 - 7.1 + - 7.2 + - 7.3 branches: only: @@ -12,3 +14,4 @@ install: - composer install --prefer-source script: - ./vendor/bin/phpspec run + - ./vendor/bin/phpunit diff --git a/composer.json b/composer.json index bccf855..f0bff11 100644 --- a/composer.json +++ b/composer.json @@ -3,14 +3,18 @@ "license": "MIT", "description": "Just some tools to work better with PHP", "autoload": { - "psr-4": { "Nekland\\Tools\\": "src/Tools/" } + "psr-4": { "Nekland\\Tools\\": "src/Tools/", "Nekland\\Utils\\": "src/Utils/" } + }, + "autoload-dev": { + "psr-4": { "Nekland\\Utils\\Test\\": "tests/Nekland/Utils/" } }, "require": { "php": "^5.6 || ^7.0" }, "require-dev": { "phpspec/phpspec": "^3.2", - "bossa/phpspec2-expect": "^2.3" + "bossa/phpspec2-expect": "^2.3", + "phpunit/phpunit": "^7.5" }, "_comment": [ "PHPSpec is limited to ^3.2 to keep compatibility with PHP5.6" diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..7879916 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,20 @@ + + + + + + ./tests/Nekland + + + + + + ./ + + ./docs + ./tests + ./vendor + + + +