diff --git a/tests/BaseTest.php b/tests/BaseTest.php index 6e989c65..04289a82 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -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()