mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed test case for CakeResponse
This commit is contained in:
parent
a3d405524e
commit
03b6c3fa61
1 changed files with 3 additions and 3 deletions
|
@ -342,7 +342,7 @@ class CakeResponseTest extends CakeTestCase {
|
|||
public function testHttpCodes() {
|
||||
$response = new CakeResponse();
|
||||
$result = $response->httpCodes();
|
||||
$this->assertEquals(39, count($result));
|
||||
$this->assertEquals(40, count($result));
|
||||
|
||||
$result = $response->httpCodes(100);
|
||||
$expected = array(100 => 'Continue');
|
||||
|
@ -355,7 +355,7 @@ class CakeResponseTest extends CakeTestCase {
|
|||
|
||||
$result = $response->httpCodes($codes);
|
||||
$this->assertTrue($result);
|
||||
$this->assertEquals(41, count($response->httpCodes()));
|
||||
$this->assertEquals(42, count($response->httpCodes()));
|
||||
|
||||
$result = $response->httpCodes(1337);
|
||||
$expected = array(1337 => 'Undefined Unicorn');
|
||||
|
@ -364,7 +364,7 @@ class CakeResponseTest extends CakeTestCase {
|
|||
$codes = array(404 => 'Sorry Bro');
|
||||
$result = $response->httpCodes($codes);
|
||||
$this->assertTrue($result);
|
||||
$this->assertEquals(41, count($response->httpCodes()));
|
||||
$this->assertEquals(42, count($response->httpCodes()));
|
||||
|
||||
$result = $response->httpCodes(404);
|
||||
$expected = array(404 => 'Sorry Bro');
|
||||
|
|
Loading…
Reference in a new issue