-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Remove workaround for testing with PHP 8 #344
Conversation
e06af0d
to
532211d
Compare
We should use a version that is compatible with PHP 8
532211d
to
dc158f0
Compare
Now that all dependencies support it, it should not be necessary to pretend we are using PHP 7.4.
dc158f0
to
f256c0d
Compare
@@ -29,11 +31,13 @@ public function testInstantiatingWithoutManagerRegistry() : void | |||
if (PHP_VERSION_ID >= 80000) { | |||
$this->expectExceptionMessage( | |||
<<<'MESSAGE' | |||
Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand::__construct(): Argument #1 ($doctrine) must be of type Doctrine\Persistence\ManagerRegistry, null given, called in /home/runner/work/DoctrineFixturesBundle/DoctrineFixturesBundle/Command/LoadDataFixturesDoctrineCommand.php on line 49 | |||
Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand::__construct(): Argument #1 ($doctrine) must be of type Doctrine\Persistence\ManagerRegistry, null given, called in /home/runner/work/DoctrineFixturesBundle/DoctrineFixturesBundle/Command/LoadDataFixturesDoctrineCommand.php on line 51 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the line number relevant for the error message check? It seems like an unstable test when changes are happening.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is unstable indeed, I remember having to change it in the past. Let me try refactoring it.
e040fa3
to
d3a471d
Compare
We no longer assert the file and the line number in the test, which should make it less flaky. Also, we regroup together the 2 cases which makes it easier to understand the only thing that changes is the form of the message we are trying to test.
d3a471d
to
ff1a572
Compare
It looks like the integration tests are flaky 🤦
|
Now that all dependencies support it, it should not be necessary to
pretend we are using PHP 7.4. Implies upgrading the CS lib.