Skip to content

Commit

Permalink
Update test for newer PHPUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
sstok committed Aug 19, 2017
1 parent ebf5099 commit 12e17bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 2 additions & 1 deletion tests/Blacklist/ChainProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 12e17bc

Please sign in to comment.