From 4d99ef5e129d19e9efcb857d9c5a8c6583e6157c Mon Sep 17 00:00:00 2001 From: peter279k Date: Fri, 20 Mar 2020 03:20:52 +0800 Subject: [PATCH] Test improvement --- .travis.yml | 4 ++-- composer.json | 5 +++++ tests/Unit/BasicUsageTest.php | 2 ++ tests/Unit/PostcodesIoTest.php | 2 ++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a04540..ceb6e00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ language: php -dist: trusty php: - '7.1' - '7.2' - '7.3' + - '7.4' install: - - composer update + - composer install script: - ./vendor/bin/phpunit --coverage-clover ./tests/Logs/clover.xml after_script: diff --git a/composer.json b/composer.json index 4b6a9e2..f3b99f1 100644 --- a/composer.json +++ b/composer.json @@ -20,5 +20,10 @@ "psr-4": { "DivineOmega\\Postcodes\\": "src/" } + }, + "autoload-dev": { + "psr-4": { + "DivineOmega\\Postcodes\\Tests\\": "tests/Unit/" + } } } diff --git a/tests/Unit/BasicUsageTest.php b/tests/Unit/BasicUsageTest.php index df65a07..baf9837 100644 --- a/tests/Unit/BasicUsageTest.php +++ b/tests/Unit/BasicUsageTest.php @@ -1,5 +1,7 @@