Skip to content

Commit

Permalink
Use notice free test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Jan 12, 2015
1 parent 2b28ea0 commit 46ae690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TestSuite/IntegrationTestCase.php
Expand Up @@ -454,7 +454,8 @@ public function assertRedirect($url = null, $message = '')
}
$result = $this->_response->header();
if ($url === null) {
return $this->assertNotEmpty($result['Location']);
$this->assertTrue(!empty($result['Location']), $message);
return;
}
if (empty($result['Location'])) {
$this->fail('No location header set. ' . $message);
Expand Down

0 comments on commit 46ae690

Please sign in to comment.