-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
run tests using PHPUnit 11.5 #58370
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
base: 7.3
Are you sure you want to change the base?
run tests using PHPUnit 11.5 #58370
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -16,6 +16,7 @@ | |||||
use Doctrine\Persistence\Mapping\ClassMetadata; | ||||||
use Doctrine\Persistence\ObjectManager; | ||||||
use Doctrine\Persistence\ObjectRepository; | ||||||
use PHPUnit\Framework\Attributes\IgnoreDeprecations; | ||||||
use PHPUnit\Framework\MockObject\MockObject; | ||||||
use PHPUnit\Framework\TestCase; | ||||||
use Symfony\Bridge\Doctrine\ArgumentResolver\EntityValueResolver; | ||||||
|
@@ -64,9 +65,7 @@ public function testResolveWithoutManager() | |||||
$this->assertSame([], $resolver->resolve($request, $argument)); | ||||||
} | ||||||
|
||||||
/** | ||||||
* @group legacy | ||||||
*/ | ||||||
#[IgnoreDeprecations] | ||||||
public function testResolveWithNoIdAndDataOptional() | ||||||
{ | ||||||
$manager = $this->createMock(ObjectManager::class); | ||||||
|
@@ -251,9 +250,7 @@ public static function idsProvider(): iterable | |||||
yield ['foo']; | ||||||
} | ||||||
|
||||||
/** | ||||||
* @group legacy | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we keep a symfony/.github/workflows/unit-tests.yml Lines 134 to 135 in fe94cfb
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thinking about this again, I think this option was overkill and was leading to not testing some parts of the code in CI in our LTS branches. Many legacy tests we have are about testing deprecations of their own component, which does not need such exclusion. Tests relying on cross-package deprecations could be responsible for skipping themselves when needed. |
||||||
*/ | ||||||
#[IgnoreDeprecations] | ||||||
public function testResolveGuessOptional() | ||||||
{ | ||||||
$manager = $this->createMock(ObjectManager::class); | ||||||
|
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.
To make things easier to maintain, would it be worth backporting this split of the Windows jobs ? what do you think @nicolas-grekas ?
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.
we talked about that in #58721 but decided to not split the two test runs as we would otherwise run many of the tests twice since the
phpunit.skipped
would not be sharedThere 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.
I don't see any discussion about that in the PR you linked
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.
hm, maybe @nicolas-grekas and me talked about that on Slack directly 🤔