1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests/lib/Doctrine_OrmTestSuite.php

25 lines
741 B
PHP
Raw Normal View History

2008-02-09 21:59:19 +03:00
<?php
/**
* The outermost test suite for all orm related testcases & suites.
*
* Currently the orm suite uses a normal connection object.
* Upon separation of the DBAL and ORM package this suite should just use a orm
* connection/session/manager instance as the shared fixture.
*/
class Doctrine_OrmTestSuite extends Doctrine_TestSuite
{
protected function setUp()
{
2008-02-10 20:29:24 +03:00
// @todo Make DBMS choice configurable
2008-02-09 21:59:19 +03:00
$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()
2008-02-10 17:32:05 +03:00
{}
2008-02-09 21:59:19 +03:00
}