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