From 26b421780a8add0544b884062b4aa8bcaf089a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20R?= Date: Tue, 30 Apr 2019 14:18:10 +0200 Subject: [PATCH] [Tests] Move to phpunit 7 & add paratest --- composer.json | 4 ++-- phpunit.xml | 3 +-- tests/lib/FieldType/Converter/MethodCallCountConstraint.php | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index fa362908..d2b30f4c 100644 --- a/composer.json +++ b/composer.json @@ -18,8 +18,8 @@ "ezsystems/ezplatform-richtext": "^1.1" }, "require-dev": { - "phpunit/phpunit": "^6.5.9", - "matthiasnoback/symfony-dependency-injection-test": "^2.3.1", + "phpunit/phpunit": "^7.5", + "matthiasnoback/symfony-dependency-injection-test": "^3.1.0", "ezsystems/ezplatform-solr-search-engine": "^1.5.7", "friendsofphp/php-cs-fixer": "v2.14.2" }, diff --git a/phpunit.xml b/phpunit.xml index 786c7e36..9966e81b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -3,8 +3,7 @@ colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" - convertWarningsToExceptions="true" - syntaxCheck="true"> + convertWarningsToExceptions="true"> ./tests/bundle/ diff --git a/tests/lib/FieldType/Converter/MethodCallCountConstraint.php b/tests/lib/FieldType/Converter/MethodCallCountConstraint.php index 10fe9dc6..388ed3f1 100644 --- a/tests/lib/FieldType/Converter/MethodCallCountConstraint.php +++ b/tests/lib/FieldType/Converter/MethodCallCountConstraint.php @@ -44,7 +44,7 @@ public function __construct($expectedCount) * @return mixed|void * @throws PHPUnit_Framework_ExpectationFailedException */ - public function invoked(Invocation $invocation) + public function invoked(Invocation $invocation): void { parent::invoked($invocation); @@ -62,7 +62,7 @@ public function invoked(Invocation $invocation) * * @return string */ - public function toString() + public function toString(): string { return 'MethodCallCountConstraint'; }