<?php /** * The outermost test suite for all dbal related testcases & suites. * * Currently the dbal suite uses a normal connection object, too, just like the orm suite. * Upon separation of the DBAL and ORM package this suite should just use a DBAL * connection in the shared fixture. */ class Doctrine_DbalTestSuite extends Doctrine_TestSuite { protected function setUp() { $pdo = new PDO('sqlite::memory:'); $this->sharedFixture['connection'] = $this->loadConnection($pdo, 'sqlite_memory'); } protected function loadConnection($conn, $name) { return Doctrine_Manager::connection($conn, $name); } protected function tearDown() { Doctrine_Manager::getInstance()->getConnection('sqlite_memory')->close(); $this->sharedFixture = NULL; } }