2009-01-04 19:15:32 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
#namespace Doctrine\Tests;
|
|
|
|
|
2008-05-24 21:37:26 +04:00
|
|
|
/**
|
|
|
|
* 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_OrmFunctionalTestSuite extends Doctrine_OrmTestSuite
|
|
|
|
{
|
|
|
|
protected function setUp()
|
|
|
|
{
|
2009-01-12 16:34:41 +03:00
|
|
|
if ( ! isset($this->sharedFixture['conn'])) {
|
|
|
|
$this->sharedFixture['conn'] = Doctrine_TestUtil::getConnection();
|
|
|
|
}
|
2008-05-24 21:37:26 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
protected function tearDown()
|
2009-01-12 16:34:41 +03:00
|
|
|
{
|
|
|
|
$this->sharedFixture = null;
|
|
|
|
}
|
2008-05-24 21:37:26 +04:00
|
|
|
}
|