Skip test when pdo_sqlite isn't there but PDO is
This commit is contained in:
parent
5d437cd853
commit
1432e4f954
@ -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
|
* 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() {
|
public function testConnectionValueFromPdo() {
|
||||||
if (!extension_loaded('PDO')) {
|
if (!extension_loaded('PDO') || !extension_loaded('pdo_sqlite')) {
|
||||||
return $this->markTestSkipped('Session test requires PDO');
|
return $this->markTestSkipped('Session test requires PDO and pdo_sqlite');
|
||||||
}
|
}
|
||||||
|
|
||||||
$sessionId = md5('testSession');
|
$sessionId = md5('testSession');
|
||||||
@ -135,4 +135,4 @@ class SessionProviderTest extends AbstractMessageComponentTestCase {
|
|||||||
$this->setExpectedException('\RuntimeException');
|
$this->setExpectedException('\RuntimeException');
|
||||||
new SessionProvider($this->getMock('\Ratchet\MessageComponentInterface'), $this->getMock('\SessionHandlerInterface'));
|
new SessionProvider($this->getMock('\Ratchet\MessageComponentInterface'), $this->getMock('\SessionHandlerInterface'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user