From 12e17bcfefe99047eca98f63a45e6237879843af Mon Sep 17 00:00:00 2001 From: Sebastiaan Stok Date: Sat, 19 Aug 2017 16:00:31 +0200 Subject: [PATCH] Update test for newer PHPUnit --- .travis.yml | 4 +--- composer.json | 3 +-- tests/Blacklist/ChainProviderTest.php | 3 ++- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4bd224c..eea187d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,10 +23,8 @@ install: - if [ "$DEPENDENCIES" != "low" ]; then composer update --prefer-dist --no-progress --no-suggest --ansi; fi; - if [ "$DEPENDENCIES" == "low" ]; then composer update --prefer-dist --no-progress --no-suggest --ansi --prefer-lowest; fi; -before_script: - - if [ "$SYMFONY_PHPUNIT_VERSION" == "" ]; then export SYMFONY_PHPUNIT_VERSION=5.7.1; fi - script: + - export SYMFONY_PHPUNIT_VERSION=5.7.1 - export SYMFONY_PHPUNIT_REMOVE="symfony/yaml" - export SYMFONY_DEPRECATIONS_HELPER=strict - vendor/bin/simple-phpunit --verbose diff --git a/composer.json b/composer.json index 48fbd73..809d945 100644 --- a/composer.json +++ b/composer.json @@ -24,8 +24,7 @@ "symfony/polyfill-mbstring": "^1.5.0" }, "require-dev": { - "matthiasnoback/symfony-dependency-injection-test": "^2.1.0", - "matthiasnoback/symfony-service-definition-validator": "^1.2.8", + "symfony/config": "^3.3.6", "symfony/console": "^3.3.6", "symfony/phpunit-bridge": "^3.3.6" }, diff --git a/tests/Blacklist/ChainProviderTest.php b/tests/Blacklist/ChainProviderTest.php index 1f7696c..d93c2ad 100644 --- a/tests/Blacklist/ChainProviderTest.php +++ b/tests/Blacklist/ChainProviderTest.php @@ -62,7 +62,8 @@ public function testNoAssignSelf() { $provider = new ChainProvider(); - $this->setExpectedException('\RuntimeException', 'Unable to add ChainProvider to itself.'); + $this->expectException('\RuntimeException'); + $this->expectExceptionMessage('Unable to add ChainProvider to itself.'); $provider->addProvider($provider); } }