mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Add failure messages to test assertions.
This commit is contained in:
parent
2df873412c
commit
6c18f6a231
1 changed files with 3 additions and 3 deletions
|
@ -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.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue