protected function StoreTest::setUp

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/StoreTest.php, line 24

Class

StoreTest

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

protected function setUp() {
  if (!class_exists('Symfony\\Component\\HttpFoundation\\Request')) {
    $this
      ->markTestSkipped('The "HttpFoundation" component is not available');
  }
  $this->request = Request::create('/');
  $this->response = new Response('hello world', 200, array());
  HttpCacheTestCase::clearDirectory(sys_get_temp_dir() . '/http_cache');
  $this->store = new Store(sys_get_temp_dir() . '/http_cache');
}