You are here

public static function SqliteProfilerStorageTest::setUpBeforeClass in Zircon Profile 8.0

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

File

vendor/symfony/http-kernel/Tests/Profiler/SqliteProfilerStorageTest.php, line 21

Class

SqliteProfilerStorageTest

Namespace

Symfony\Component\HttpKernel\Tests\Profiler

Code

public static function setUpBeforeClass() {
  self::$dbFile = tempnam(sys_get_temp_dir(), 'sf2_sqlite_storage');
  if (file_exists(self::$dbFile)) {
    @unlink(self::$dbFile);
  }
  self::$storage = new SqliteProfilerStorage('sqlite:' . self::$dbFile);
}