Skip to content

Commit

Permalink
Test: second request gives same result as first
Browse files Browse the repository at this point in the history
  • Loading branch information
ithinkihaveacat committed Jun 28, 2012
1 parent 9cd6fde commit e4d869a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/medium/AdapterFileTest.php
Expand Up @@ -18,6 +18,13 @@ public function test200File()
$this->assertEquals("text/plain", $res->getHeader("content-type"));
$this->assertEquals("Hello, World!", trim($res->getBody()));

$client->setUri("http://another.com/");
$res = $client->request();

$this->assertTrue($res->isSuccessful());
$this->assertEquals(200, $res->getStatus());
$this->assertEquals("text/plain", $res->getHeader("content-type"));
$this->assertEquals("Hello, World!", trim($res->getBody()));
}

public function test500File()
Expand All @@ -34,7 +41,6 @@ public function test500File()
$this->assertEquals(500, $res->getStatus());
$this->assertEquals("application/json", $res->getHeader("content-type"));
$this->assertEquals(array("message" => "Internal Server Error"), json_decode($res->getBody(), true));

}

}

0 comments on commit e4d869a

Please sign in to comment.