Skip to content

Commit

Permalink
Add failure messages to test assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 17, 2013
1 parent 2df8734 commit 6c18f6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Network/CakeResponseTest.php
Expand Up @@ -1488,9 +1488,9 @@ public function testFileRangeInvalid() {
*/
public function testLocation() {
$response = new CakeResponse();
$this->assertNull($response->location());
$this->assertNull($response->location('http://example.org'));
$this->assertEquals('http://example.org', $response->location());
$this->assertNull($response->location(), 'No header should be set.');
$this->assertNull($response->location('http://example.org'), 'Setting a location should return null');
$this->assertEquals('http://example.org', $response->location(), 'Reading a location should return the value.');
}

}

0 comments on commit 6c18f6a

Please sign in to comment.