diff --git a/.gitignore b/.gitignore index 7739fcc7..55ff9b07 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea /vendor composer.lock +.phpunit.result.cache \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 57c25f66..a0b5e407 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,7 @@ language: php php: - - '5.6' - - '7.1' + - '7.3' - '7.4' sudo: false diff --git a/composer.json b/composer.json index 3d3678be..b7c19205 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ }, "require-dev": { "fzaninotto/faker": "~1.4", - "mockery/mockery": "0.9.*", - "phpunit/phpunit": "~5.0" + "mockery/mockery": ">=1.4", + "phpunit/phpunit": "^9" }, "autoload": { "psr-4": { diff --git a/phpunit.xml b/phpunit.xml index 9a80ef03..d154e28b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,24 +1,16 @@ - - - - ./tests - - - - - ./src - - - - - + + + + ./src + + + + + ./tests + + + + + diff --git a/tests/TestCase.php b/tests/TestCase.php index 3f5921bd..a3f9e4e4 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -4,12 +4,12 @@ * Created by Cristian. * Date: 16/10/16 12:49 PM. */ -class TestCase extends PHPUnit_Framework_TestCase +class TestCase extends \PHPUnit\Framework\TestCase { /** * Clean up the testing environment before the next test. */ - protected function tearDown() + protected function tearDown(): void { if (class_exists('Mockery')) { Mockery::close();