-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Error when running TestSuite #811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I cannot reproduce this. Seems somehow for you its using the wrong (not-maintained) phpunit version 5? For me |
Ah ok this happens only for PHP 7.1. I just tested it for PHP 7.2 and it works fine. @siewert87 can you test this change? diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index d545bf4..d916ef2 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -22,6 +22,8 @@
<!-- ###+ symfony/swiftmailer-bundle ### -->
<env name="MAILER_URL" value="null://localhost"/>
<!-- ###- symfony/swiftmailer-bundle ### -->
+
+ <env name="SYMFONY_PHPUNIT_VERSION" value="6.3"/>
</php>
<testsuites> |
You sir, are a lifesaver. ;) The tests are running now, but shouldn't this work out-of-the-box without this hack? |
@siewert87 yes indeed 👍 Will create a PR with a fix soon 😉 |
@siewert87 you can re-open the issue in the meantime |
Thank you. :)
|
I reopened the issue, @dmaicher. |
… (dmaicher) This PR was merged into the master branch. Discussion ---------- require phpunit 7.1 via SYMFONY_PHPUNIT_VERSION env variable Fixes #811 When running the test suite on php 7.1 the wrong phpunit (non-maintained version 5) is required by the simple-phpunit-bridge which is not compatible with https://github.com/dmaicher/doctrine-test-bundle-demo. Commits ------- 1b61f15 require phpunit 7.1 via SYMFONY_PHPUNIT_VERSION env variable
Thank you, @javiereguiluz and @dmaicher. 👍 |
… (dmaicher) This PR was merged into the master branch. Discussion ---------- require phpunit 7.1 via SYMFONY_PHPUNIT_VERSION env variable Fixes symfony/demo#811 When running the test suite on php 7.1 the wrong phpunit (non-maintained version 5) is required by the simple-phpunit-bridge which is not compatible with https://github.com/dmaicher/doctrine-test-bundle-demo. Commits ------- 1b61f15 require phpunit 7.1 via SYMFONY_PHPUNIT_VERSION env variable
… (dmaicher) This PR was merged into the master branch. Discussion ---------- require phpunit 7.1 via SYMFONY_PHPUNIT_VERSION env variable Fixes symfony/demo#811 When running the test suite on php 7.1 the wrong phpunit (non-maintained version 5) is required by the simple-phpunit-bridge which is not compatible with https://github.com/dmaicher/doctrine-test-bundle-demo. Commits ------- 1b61f15 require phpunit 7.1 via SYMFONY_PHPUNIT_VERSION env variable
A fresh installation of this project gives me this when running the tests:
PHP version is 7.1.9. Any ideas?
Best,
Christian
The text was updated successfully, but these errors were encountered: