From aa78f8d07b33755f010ec0516c259d35ee1aa711 Mon Sep 17 00:00:00 2001 From: peter279k Date: Mon, 28 Oct 2019 01:39:44 +0800 Subject: [PATCH] Enhance PHPUnit fixtures --- .travis.yml | 2 +- .../ApiPlatformCoreAnnotationGeneratorTest.php | 2 +- tests/Command/GenerateTypesCommandTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 355a7e99..fdbd42b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ before_install: - phpenv config-rm xdebug.ini || echo "xdebug not available" - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini - export PATH="$PATH:$HOME/.composer/vendor/bin" - - wget -O phpunit.phar https://phar.phpunit.de/phpunit-6.5.phar + - wget -O phpunit.phar https://phar.phpunit.de/phpunit-7.5.phar - if [[ $coverage = 1 ]]; then mkdir -p build/logs; fi - if [[ $coverage = 1 ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v2.0.0/php-coveralls.phar; fi - if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.10.0/php-cs-fixer.phar; fi diff --git a/tests/AnnotationGenerator/ApiPlatformCoreAnnotationGeneratorTest.php b/tests/AnnotationGenerator/ApiPlatformCoreAnnotationGeneratorTest.php index 5bdbc07e..a2ea8f2d 100644 --- a/tests/AnnotationGenerator/ApiPlatformCoreAnnotationGeneratorTest.php +++ b/tests/AnnotationGenerator/ApiPlatformCoreAnnotationGeneratorTest.php @@ -28,7 +28,7 @@ class ApiPlatformCoreAnnotationGeneratorTest extends TestCase */ private $generator; - public function setUp() + protected function setUp(): void { $graph = new \EasyRdf_Graph(); $myEnum = new \EasyRdf_Resource('http://schema.org/MyEnum', $graph); diff --git a/tests/Command/GenerateTypesCommandTest.php b/tests/Command/GenerateTypesCommandTest.php index 3e943ef5..2a9c7ea8 100644 --- a/tests/Command/GenerateTypesCommandTest.php +++ b/tests/Command/GenerateTypesCommandTest.php @@ -28,7 +28,7 @@ class GenerateTypesCommandTest extends TestCase */ private $fs; - public function setUp() + protected function setUp(): void { $this->fs = new Filesystem(); }