1
0
mirror of synced 2025-01-18 06:21:40 +03:00

changes on the new test suite.

This commit is contained in:
romanb 2008-02-10 19:20:52 +00:00
parent 373a0ac994
commit 662b341212
4 changed files with 0 additions and 16 deletions

View File

@ -16,7 +16,6 @@ class Doctrine_DbalTestCase extends Doctrine_TestCase
{
// Setup a db connection if there is none, yet. This makes it possible
// to run tests that use a connection standalone.
// @todo Make DBMS choice configurable
if ( ! isset($this->sharedFixture['connection'])) {
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
}

View File

@ -11,14 +11,8 @@ class Doctrine_DbalTestSuite extends Doctrine_TestSuite
protected function setUp()
{
// @todo Make DBMS choice configurable
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
}
protected function loadConnection($conn, $name)
{
return Doctrine_Manager::connection($conn, $name);
}
protected function tearDown()
{}

View File

@ -34,7 +34,6 @@ class Doctrine_OrmTestCase extends Doctrine_TestCase
{
// Setup a db connection if there is none, yet. This makes it possible
// to run tests that use a connection standalone.
// @todo Make DBMS choice configurable
if ( ! isset($this->sharedFixture['connection'])) {
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
}

View File

@ -10,16 +10,8 @@ class Doctrine_OrmTestSuite extends Doctrine_TestSuite
{
protected function setUp()
{
// @todo Make DBMS choice configurable
//$pdo = new PDO('sqlite::memory:');
//$this->sharedFixture['connection'] = $this->loadConnection($pdo, 'sqlite_memory');
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
}
protected function loadConnection($conn, $name)
{
return Doctrine_Manager::connection($conn, $name);
}
protected function tearDown()
{}