Skip to content

Commit

Permalink
Windows uses two whitespace bytes as line endings. (#484)
Browse files Browse the repository at this point in the history
Since windows issues both a CR and a LF, we'll have to accept at least two bytes. This brings the whitespace handling in line with the other whitespace tests in the same regex.
  • Loading branch information
matslindh authored and christeredvartsen committed Jul 15, 2016
1 parent 54a2b40 commit fda7265
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ public function testCanFormatGroupsModel() {
$model->expects($this->once())->method('getCount')->will($this->returnValue($count));
$model->expects($this->once())->method('getGroups')->will($this->returnValue($groups));

$this->assertRegExp('#<imbo>\s*<search>\s*<hits>2</hits>\s*<page>1</page>\s*<limit>5</limit>\s*<count>1</count>\s*</search>\s*<groups><group>\s*<name>group</name>\s*<resources>\s*<resource>user.get</resource><resource>user.head</resource>\s*</resources></group></groups>\s</imbo>$#', $this->formatter->format($model));
$this->assertRegExp('#<imbo>\s*<search>\s*<hits>2</hits>\s*<page>1</page>\s*<limit>5</limit>\s*<count>1</count>\s*</search>\s*<groups><group>\s*<name>group</name>\s*<resources>\s*<resource>user.get</resource><resource>user.head</resource>\s*</resources></group></groups>\s*</imbo>$#', $this->formatter->format($model));
}

/**
Expand Down

0 comments on commit fda7265

Please sign in to comment.