Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add failure messages to test assertions.

  • Loading branch information...
commit 6c18f6a2316c9adbb32935b316fd595cde9383c2 1 parent 2df8734
@markstory markstory authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Test/Case/Network/CakeResponseTest.php
View
6 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.');
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.