public static function SqliteProfilerStorageTest::setUpBeforeClass

File

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