Permalink
Browse files

Add failure messages to test assertions.

  • Loading branch information...
1 parent 2df8734 commit 6c18f6a2316c9adbb32935b316fd595cde9383c2 @markstory markstory committed Jul 17, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Test/Case/Network/CakeResponseTest.php
@@ -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.