Skip to content

Commit

Permalink
Update response tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jadb committed Apr 27, 2015
1 parent 4c3eeb1 commit fa998d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestCase/Network/ResponseTest.php
Expand Up @@ -413,7 +413,7 @@ public function testHttpCodes()
{
$response = new Response();
$result = $response->httpCodes();
$this->assertEquals(40, count($result));
$this->assertEquals(41, count($result));

$result = $response->httpCodes(100);
$expected = [100 => 'Continue'];
Expand All @@ -426,7 +426,7 @@ public function testHttpCodes()

$result = $response->httpCodes($codes);
$this->assertTrue($result);
$this->assertEquals(42, count($response->httpCodes()));
$this->assertEquals(43, count($response->httpCodes()));

$result = $response->httpCodes(381);
$expected = [381 => 'Unicorn Moved'];
Expand All @@ -435,7 +435,7 @@ public function testHttpCodes()
$codes = [404 => 'Sorry Bro'];
$result = $response->httpCodes($codes);
$this->assertTrue($result);
$this->assertEquals(42, count($response->httpCodes()));
$this->assertEquals(43, count($response->httpCodes()));

$result = $response->httpCodes(404);
$expected = [404 => 'Sorry Bro'];
Expand Down

0 comments on commit fa998d7

Please sign in to comment.