Skip to content

Commit 597c3ba

Browse files
committed
Fixing tests
1 parent 49e9ff1 commit 597c3ba

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ matrix:
1717
- php: 7.2
1818
env: PHPSTAN=true
1919
- php: 7.4
20-
env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text"
20+
env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text" TESTNOSECURITYBUNDLE=true
2121

2222
# Test LTS versions.
2323
- php: 7.4
@@ -55,8 +55,7 @@ script:
5555
- if [[ $PHPSTAN == true ]]; then composer phpstan; fi
5656
- ./vendor/bin/phpunit
5757
# Let's test without the security bundle
58-
- composer remove --dev symfony/security-bundle
59-
- phpunit Tests/NoSecurityBundleTest.php
58+
- if [[ $TESTNOSECURITYBUNDLE == true ]]; then composer remove --dev symfony/security-bundle && phpunit Tests/NoSecurityBundleTest.php; fi
6059

6160
after_script:
6261
- ./vendor/bin/php-coveralls -v

phpunit.xml.dist

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
</logging>
3636

3737
<listeners>
38-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
38+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
39+
<arguments>
40+
<array>
41+
<!-- set this option to 0 to disable the DebugClassLoader integration -->
42+
<!-- See https://github.com/sebastianbergmann/phpunit/issues/4002 -->
43+
<element key="debug-class-loader"><integer>0</integer></element>
44+
</array>
45+
</arguments>
46+
</listener>
3947
</listeners>
4048
</phpunit>

0 commit comments

Comments
 (0)