Skip to content

Commit

Permalink
Merge pull request #1249 from DiegoMax/master
Browse files Browse the repository at this point in the history
Fixed CakeResponse Tests
  • Loading branch information
ADmad committed Apr 26, 2013
2 parents 509b2b1 + 03b6c3f commit 3c036e9
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 @@ -361,7 +361,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 @@ -374,7 +374,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 @@ -383,7 +383,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 3c036e9

Please sign in to comment.