You are here

public static function FileProfilerStorageTest::setUpBeforeClass in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/Profiler/FileProfilerStorageTest.php \Symfony\Component\HttpKernel\Tests\Profiler\FileProfilerStorageTest::setUpBeforeClass()

File

vendor/symfony/http-kernel/Tests/Profiler/FileProfilerStorageTest.php, line 35

Class

FileProfilerStorageTest

Namespace

Symfony\Component\HttpKernel\Tests\Profiler

Code

public static function setUpBeforeClass() {
  self::$tmpDir = sys_get_temp_dir() . '/sf2_profiler_file_storage';
  if (is_dir(self::$tmpDir)) {
    self::cleanDir();
  }
  self::$storage = new FileProfilerStorage('file:' . self::$tmpDir);
}