From 39f5f7fb6e193bf71a976afb8d78e5e158ba7acd Mon Sep 17 00:00:00 2001 From: peter279k Date: Fri, 19 Mar 2021 01:52:43 +0800 Subject: [PATCH] Improve PHPUnit fixture --- .travis.yml | 2 +- tests/RelayBuilderTest.php | 2 +- tests/RelayTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 50c54be..3b93ce4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ before_script: script: - php vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no - php vendor/bin/phpcs --no-cache --no-colors - - php vendor/bin/phpunit --coverage-clover=coverage.clover + - XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-clover=coverage.clover - php vendor/bin/phpstan analyse --no-interaction - php vendor/bin/psalm after_script: diff --git a/tests/RelayBuilderTest.php b/tests/RelayBuilderTest.php index a90adb4..4f2c770 100644 --- a/tests/RelayBuilderTest.php +++ b/tests/RelayBuilderTest.php @@ -12,7 +12,7 @@ class RelayBuilderTest extends TestCase /** @var RelayBuilder */ protected $relayBuilder; - protected function setUp() + protected function setUp() : void { $this->relayBuilder = new RelayBuilder(); } diff --git a/tests/RelayTest.php b/tests/RelayTest.php index 89cb18c..8b2d923 100644 --- a/tests/RelayTest.php +++ b/tests/RelayTest.php @@ -18,7 +18,7 @@ class RelayTest extends TestCase /** @var Closure */ protected $responder; - protected function setUp() + protected function setUp() : void { $this->responder = function ($request, $next) { return new Response();