-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Translation] skip tests if required class does not exist #38004
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
Conversation
xabbuh
commented
Aug 31, 2020
Q | A |
---|---|
Branch? | 3.4 |
Bug fix? | no |
New feature? | no |
Deprecations? | no |
Tickets | |
License | MIT |
Doc PR |
Builds on AppVeyor only fail for |
2889892
to
a545deb
Compare
ah, looks like the failure was actually caused by #37371 which was merged into |
a545deb
to
801b3a5
Compare
@@ -59,6 +59,10 @@ protected function deleteTmpDir() | |||
*/ | |||
public function testThatACacheIsUsed($debug) | |||
{ | |||
if (!class_exists(\MessageFormatter::class)) { | |||
$this->markTestSkipped(sprintf('Skipping test as the "%s" class does not exist.', \MessageFormatter::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.
The class does not exist when ext-intl
is missing. I think the message should reflect that.
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.
Good idea, I have updated the message to provide more information.
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.
Suggesting the PHP extension or the polyfill package is inline with the exception that is thrown by the IntlFormatter
.
801b3a5
to
427fffa
Compare
everything's back to green \o/ |
Thank you @xabbuh. |