public function testWithLastModified() { $now = time(); $cacheProvider = new CacheProvider(); $res = $cacheProvider->withLastModified(new Response(), $now); $lastModified = $res->getHeaderLine('Last-Modified'); $this->assertEquals(gmdate('D, d M Y H:i:s T', $now), $lastModified); }