diff --git a/composer.json b/composer.json index b19cf1c7..65e4e985 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ ], "require": { "php": "^7.2 || ^8.0", - "phpunit/phpunit": "^7.5.0 || ^8.0 || ^9.0", + "phpunit/phpunit": "^7.5.0 || ^8.0 || ^9.0 || ^10.0", "symfony/browser-kit": "^4.4 || ^5.1 || ^6.0", "symfony/framework-bundle": "^4.4 || ^5.1 || ^6.0" }, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 95a886a8..25fdef43 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,19 +1,17 @@ - - - + - tests/Command @@ -21,10 +19,9 @@ tests/Test - - - + + src - - + + diff --git a/src/Utils/HttpAssertions.php b/src/Utils/HttpAssertions.php index 5e9c6adc..c561218c 100644 --- a/src/Utils/HttpAssertions.php +++ b/src/Utils/HttpAssertions.php @@ -98,7 +98,10 @@ public static function assertValidationErrors(array $expected, ContainerInterfac } if (!$container->has('liip_functional_test.validator')) { - trigger_error(sprintf('Method %s() can not be used as the validation component of the Symfony framework is disabled.', __METHOD__), \E_USER_WARNING); + self::fail(sprintf( + 'Method %s() can not be used as the validation component of the Symfony framework is disabled.', + __METHOD__ + )); } self::assertThat(