diff --git a/lib/Cake/Test/Case/Network/CakeResponseTest.php b/lib/Cake/Test/Case/Network/CakeResponseTest.php index 746572a70..952efc47d 100644 --- a/lib/Cake/Test/Case/Network/CakeResponseTest.php +++ b/lib/Cake/Test/Case/Network/CakeResponseTest.php @@ -1488,9 +1488,9 @@ class CakeResponseTest extends CakeTestCase { */ 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.'); } }