Skip to content

Commit

Permalink
Don't assume UNIX line returns in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
codeguy committed Nov 22, 2016
1 parent ca533ca commit 5f6c3ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Handlers/ErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public function testPreviousException()
$error = $this->getMockBuilder('\Slim\Handlers\Error')->setMethods(['logError'])->getMock();
$error->expects($this->once())->method('logError')->with(
$this->logicalAnd(
$this->stringContains("Type: Exception\nMessage: Second Oops"),
$this->stringContains("Previous Error:\nType: Exception\nMessage: First Oops")
$this->stringContains("Message: Second Oops"),
$this->stringContains("Previous Error:" . PHP_EOL . "Type: Exception" . PHP_EOL . "Message: First Oops")
)
);

Expand Down

0 comments on commit 5f6c3ba

Please sign in to comment.