Commit 1e0dd622 authored by Victor's avatar Victor

Fix Doctrine tests

parent e69e9f00
......@@ -38,6 +38,10 @@ class DoctrineServiceProviderTest extends \PHPUnit_Framework_TestCase
public function testSingleConnection()
{
if (!in_array('sqlite', \PDO::getAvailableDrivers())) {
$this->markTestSkipped('pdo_sqlite is not available');
}
$app = new Application();
$app->register(new DoctrineServiceProvider(), array(
'db.options' => array('driver' => 'pdo_sqlite', 'memory' => true),
......@@ -55,6 +59,10 @@ class DoctrineServiceProviderTest extends \PHPUnit_Framework_TestCase
public function testMultipleConnections()
{
if (!in_array('sqlite', \PDO::getAvailableDrivers())) {
$this->markTestSkipped('pdo_sqlite is not available');
}
$app = new Application();
$app->register(new DoctrineServiceProvider(), array(
'dbs.options' => array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment