4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\HttpKernel\Tests\Profiler;
14 use Symfony\Component\HttpKernel\Profiler\SqliteProfilerStorage;
18 * @requires extension pdo_sqlite
20 class SqliteProfilerStorageTest extends AbstractProfilerStorageTest
25 protected function setUp()
27 $this->dbFile = tempnam(sys_get_temp_dir(), 'sf2_sqlite_storage');
28 if (file_exists($this->dbFile)) {
29 @unlink($this->dbFile);
31 $this->storage = new SqliteProfilerStorage('sqlite:'.$this->dbFile);
33 $this->storage->purge();
36 protected function tearDown()
38 @unlink($this->dbFile);
42 * @return \Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface
44 protected function getStorage()
46 return $this->storage;