Skip to content

Commit

Permalink
Fixed test case for CakeResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoMax committed Apr 26, 2013
1 parent a3d4055 commit 03b6c3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Network/CakeResponseTest.php
Expand Up @@ -342,7 +342,7 @@ public function testCompress() {
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');
Expand All @@ -355,7 +355,7 @@ public function testHttpCodes() {

$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');
Expand All @@ -364,7 +364,7 @@ public function testHttpCodes() {
$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');
Expand Down

0 comments on commit 03b6c3f

Please sign in to comment.