Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Fix SkippedTestSuite#41384
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Fix SkippedTestSuite#41384
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedMay 26, 2021
But this method is now |
jderusse commentedMay 26, 2021
Issue opened insebastianbergmann/phpunit#4689 |
fabpot commentedJul 3, 2021
As there is no feedback upstream, can we merge this one in the meantime? |
nicolas-grekas left a comment
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.
Let's go
fabpot commentedJul 4, 2021
Thank you@jderusse. |
1 similar comment
fabpot commentedJul 4, 2021
Thank you@jderusse. |
Throwing a TestSkipped in a
setUpBeforeClasssi handled by PHP unit as a standard exception, leading to a generic exceptionTest skipped because of an error in hook method(seehttps://github.com/symfony/symfony/pull/41380/checks?check_run_id=2645369759#step:14:165)However phpunit is able to catch
SkippedTestSuiteErrorin such situation.(https://github.com/sebastianbergmann/phpunit/blob/master/src/Framework/TestSuite.php#L438-L448)This PR replaces
self::markTestSkippedbythrow new SkippedTestSuiteError(we don't have static method helper for this exception) in oursetUpBeforeClassmethods.