From 37dc2c78219eecbf37b087f19a7850c27917d62b Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Fri, 1 Feb 2019 09:43:09 +0100 Subject: [PATCH] TASK: Update to TYPO3 CMS 9.5 and PHPUnit 8.0 --- .../Unit/Controller/FrontendUserControllerTest.php | 2 +- composer.json | 10 +++++----- readme.rst | 6 ++++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Resources/Private/CodeExamples/Tests/Unit/Controller/FrontendUserControllerTest.php b/Resources/Private/CodeExamples/Tests/Unit/Controller/FrontendUserControllerTest.php index 542116a..a9e33f1 100644 --- a/Resources/Private/CodeExamples/Tests/Unit/Controller/FrontendUserControllerTest.php +++ b/Resources/Private/CodeExamples/Tests/Unit/Controller/FrontendUserControllerTest.php @@ -40,7 +40,7 @@ class FrontendUserControllerTest extends TestCase */ protected $viewMock; - public function setUp() + public function setUp(): void { $this->subject = new FrontendUserController(); $this->viewMock = $this->getMockBuilder(ViewInterface::class)->getMock(); diff --git a/composer.json b/composer.json index 20a6ce8..943e5c5 100644 --- a/composer.json +++ b/composer.json @@ -15,15 +15,15 @@ } }, "require": { - "typo3/cms-core": "^8.7" + "typo3/cms-core": "^9.5", + "typo3/cms-extbase": "^9.5" + }, + "require-dev": { + "phpunit/phpunit": "^8.0" }, "extra": { "typo3/cms": { "web-dir": "web" } - }, - "require-dev": { - "phpunit/phpunit": "^6.5", - "infection/infection": "^0.9.0" } } diff --git a/readme.rst b/readme.rst index e8e6e03..5fec70d 100644 --- a/readme.rst +++ b/readme.rst @@ -42,8 +42,6 @@ Installation development dependencies using composer:: This also includes PHPUnit, see: composer.json -We use 6.x to support PHP 7.0. - Check installation:: ./vendor/bin/phpunit --version @@ -58,6 +56,10 @@ Links: * https://packagist.org/packages/phpunit/phpunit +.. note:: + + The concrete PHPUnit version also depends on your current PHP Version. + Create first test -----------------