Kevinrob\GuzzleCache\BaseTest::testMultipleHit PHP Method

testMultipleHit() public method

public testMultipleHit ( )
    public function testMultipleHit()
    {
        $response = $this->client->get('/no-seek');
        $this->assertEquals(CacheMiddleware::HEADER_CACHE_MISS, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO));
        $this->assertEquals('I am not seekable!', $response->getBody()->getContents());
        $response = $this->client->get('/no-seek');
        $this->assertEquals(CacheMiddleware::HEADER_CACHE_HIT, $response->getHeaderLine(CacheMiddleware::HEADER_CACHE_INFO));
        $this->assertEquals('I am not seekable!', $response->getBody()->getContents());
    }