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

Commit

Permalink
[zendframework/zendframework#2161] Skip test in 5.3.3
Browse files Browse the repository at this point in the history
- PCRE version in 5.3.3 and earlier was broken with regards to unicode
  whitespace recognition
  • Loading branch information
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/StringTrimTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public function testBasic()
*/
public function testUtf8()
{
if (version_compare(PHP_VERSION, '5.3.4', 'lt')) {
$this->markTestSkipped('PCRE update in 5.3.4 fixes unicode whitespace checking issues; in 5.3.3, this test fails due to outdated PCRE version');
}
$this->assertEquals('a', $this->_filter->filter(utf8_encode("\xa0a\xa0")));
}

Expand Down

0 comments on commit 533570c

Please sign in to comment.