From 1432e4f9541e1430947a6d337b254d8e33cd9f1e Mon Sep 17 00:00:00 2001
From: Benjamin Zikarsky <benjamin@zikarsky.de>
Date: Fri, 20 Dec 2013 18:45:54 +0100
Subject: [PATCH] Skip test when pdo_sqlite isn't there but PDO is

---
 tests/unit/Session/SessionComponentTest.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/unit/Session/SessionComponentTest.php b/tests/unit/Session/SessionComponentTest.php
index 4b3f87b..c91f13e 100644
--- a/tests/unit/Session/SessionComponentTest.php
+++ b/tests/unit/Session/SessionComponentTest.php
@@ -61,8 +61,8 @@ class SessionProviderTest extends AbstractMessageComponentTestCase {
      * I think I have severely butchered this test...it's not so much of a unit test as it is a full-fledged component test
      */
     public function testConnectionValueFromPdo() {
-        if (!extension_loaded('PDO')) {
-            return $this->markTestSkipped('Session test requires PDO');
+        if (!extension_loaded('PDO') || !extension_loaded('pdo_sqlite')) {
+            return $this->markTestSkipped('Session test requires PDO and pdo_sqlite');
         }
 
         $sessionId = md5('testSession');
@@ -135,4 +135,4 @@ class SessionProviderTest extends AbstractMessageComponentTestCase {
         $this->setExpectedException('\RuntimeException');
         new SessionProvider($this->getMock('\Ratchet\MessageComponentInterface'), $this->getMock('\SessionHandlerInterface'));
     }
-}
\ No newline at end of file
+}