Skip to content

Commit

Permalink
check for deprecations during tests + update travis config (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaicher committed Dec 9, 2018
1 parent e5ca001 commit 8e36e8d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -13,8 +13,8 @@ php:
env:
- SYMFONY_VERSION="2.8.*"
- SYMFONY_VERSION="3.4.*"
- SYMFONY_VERSION="4.0.*"
- SYMFONY_VERSION="4.1.*"
- SYMFONY_VERSION="4.2.*"
- PHPUNIT_VERSION="6.*"
- PHPUNIT_VERSION="7.*"

Expand Down
4 changes: 3 additions & 1 deletion composer.json
Expand Up @@ -17,8 +17,10 @@
"doctrine/doctrine-bundle": "~1.4"
},
"require-dev": {
"doctrine/common": "~2.10",
"phpunit/phpunit": "~6.0|~7.0",
"symfony/yaml": "~2.7|~3.0|~4.0"
"symfony/yaml": "~2.8|~3.0|~4.0",
"symfony/phpunit-bridge": "~2.8|~3.0|~4.0"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 5 additions & 2 deletions tests/phpunit.xml
Expand Up @@ -8,11 +8,13 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="true"
syntaxCheck="false"
stderr="true"
bootstrap="./phpunit.bootstrap.php"
>
<php>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors" />
</php>

<testsuites>
<testsuite name="DAMADoctrineTestBundle test suite">
<directory>../tests</directory>
Expand All @@ -30,6 +32,7 @@

<listeners>
<listener class="\DAMA\DoctrineTestBundle\PHPUnit\PHPUnitListener" />
<listener class="\Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>

</phpunit>

0 comments on commit 8e36e8d

Please sign in to comment.