public static function FileProfilerStorageTest::setUpBeforeClass

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/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);
}