Skip to content
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

ICU and Intl Version Checks #4

Merged
merged 1 commit into from Feb 12, 2013
Merged

Conversation

mapthegod
Copy link
Contributor

Making ICU Version 4.8+ a requirement for using IntlFormatter.
If ICU < 4.8 a IcuVersionTooLow Exception is thrown on instantiating IntlFormatter.

Skip tests if the intl extension is not loaded.

@@ -21,6 +21,9 @@ protected function newFormatter()
*/
public function testFormat_plural()
{
if (version_compare(INTL_ICU_VERSION, '4.8') < 0) {
$this->markTestSkipped('Skip for ICU 4.8+');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sentence will be Skip for ICU < 4.8 not for 4.8+ no? For the one below also .

@mapthegod
Copy link
Contributor Author

@harikt It depends on how you interpret it ;)
Skip for ICU 4.8+ is supposed to mean "This test is skipped if ICU Version is lower than 4.8 (~Waiting FOR version 4.8+)"
Anyways I just copied those lines from another Test in this Suite, so if we decide to change it we should change all occurences is the file.

@harikt
Copy link
Member

harikt commented Feb 12, 2013

@mapthegod ok . But for me I read it as it will skip for 4.8+ , $this->markTestSkipped('Skip for ICU 4.8+') :-) .

@mapthegod
Copy link
Contributor Author

@harikt Well i see your point. I will change the PR accordingly.

@harikt
Copy link
Member

harikt commented Feb 12, 2013

No . Wait . Ask @pmjones . For if the rest of the tests are like that , it needs some clarification .

…h ICU Version lower than 4.8; Skip all IntlFormatter tests if the intl extension is not loaded
pmjones pushed a commit that referenced this pull request Feb 12, 2013
ICU and Intl Version Checks
@pmjones pmjones merged commit ed4c167 into auraphp:develop Feb 12, 2013
@mapthegod mapthegod deleted the fix-tests branch February 12, 2013 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants