From d6a751792393b8af8d2703b7f9836d405b383a9a Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 30 Sep 2015 08:34:42 +0200 Subject: [PATCH] [HttpKernel] change a class in tests to avoid depending on SQLite --- .../Component/HttpKernel/Tests/Profiler/ProfilerTest.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php b/src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php index 43a8960021..5b3cbd9f2f 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/Profiler/ProfilerTest.php @@ -12,7 +12,7 @@ namespace Symfony\Component\HttpKernel\Tests\Profiler; use Symfony\Component\HttpKernel\DataCollector\RequestDataCollector; -use Symfony\Component\HttpKernel\Profiler\SqliteProfilerStorage; +use Symfony\Component\HttpKernel\Profiler\FileProfilerStorage; use Symfony\Component\HttpKernel\Profiler\Profiler; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; @@ -60,16 +60,12 @@ class ProfilerTest extends \PHPUnit_Framework_TestCase protected function setUp() { - if (!class_exists('SQLite3') && (!class_exists('PDO') || !in_array('sqlite', \PDO::getAvailableDrivers()))) { - $this->markTestSkipped('This test requires SQLite support in your environment'); - } - $this->tmp = tempnam(sys_get_temp_dir(), 'sf2_profiler'); if (file_exists($this->tmp)) { @unlink($this->tmp); } - $this->storage = new SqliteProfilerStorage('sqlite:'.$this->tmp); + $this->storage = new FileProfilerStorage('file:'.$this->tmp); $this->storage->purge(); }