Skip to content

Commit 6c18f6a

Browse files
committed
Add failure messages to test assertions.
1 parent 2df8734 commit 6c18f6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Cake/Test/Case/Network/CakeResponseTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,9 +1488,9 @@ public function testFileRangeInvalid() {
14881488
*/
14891489
public function testLocation() {
14901490
$response = new CakeResponse();
1491-
$this->assertNull($response->location());
1492-
$this->assertNull($response->location('http://example.org'));
1493-
$this->assertEquals('http://example.org', $response->location());
1491+
$this->assertNull($response->location(), 'No header should be set.');
1492+
$this->assertNull($response->location('http://example.org'), 'Setting a location should return null');
1493+
$this->assertEquals('http://example.org', $response->location(), 'Reading a location should return the value.');
14941494
}
14951495

14961496
}

0 commit comments

Comments
 (0)