Skip to content

Commit

Permalink
Add a basing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevinrob committed Jul 21, 2015
1 parent 1b756e5 commit f625469
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ public function testNoBreakClient()

$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals('Hello world!', $response->getBody());
$this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO));

$response = $this->client->get("anything");
$this->assertEquals(200, $response->getStatusCode());
$this->assertEquals('Hello world!', $response->getBody());
$this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO));
}

public function testNoCacheOtherMethod()
Expand Down

0 comments on commit f625469

Please sign in to comment.