Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/tests' of https://github.com/Maks3w/zf2 into hot…
Browse files Browse the repository at this point in the history
…fix/tests-5.3.3
  • Loading branch information
weierophinney committed Jun 14, 2012
6 parents 2b17650 + c1c0447 + ecae47b + 0e552a5 + 4f854c2 + afe0b14 commit 00def10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/RegexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ public function testNonStringValidation()
public function testSpecialCharValidation($expected, $input)
{
// Locale changed due a bug with PHP versions lower than 5.3.4 (https://bugs.php.net/bug.php?id=52971)
setlocale(LC_ALL, 'es_ES');
//setlocale(LC_ALL, 'Spanish_Spain', 'es_ES', 'es_ES.utf-8');
if (version_compare(PHP_VERSION, '5.3.4', '<')) {
$this->markTestIncomplete( // Skipped because Travis-CI PHP 5.3.3 don't allow set the locale
"Test skipped because the PHP version is lower than 5.3.4 or the environment don't support quoted characters");
}
$validator = new Validator\Regex('/^[[:alpha:]\']+$/iu');
$this->assertEquals($expected, $validator->isValid($input),
'Reason: ' . implode('', $validator->getMessages()));
Expand Down

0 comments on commit 00def10

Please sign in to comment.