OrmFunctionalTestSuite.php 633 Bytes
Newer Older
romanb's avatar
romanb committed
1 2
<?php

3
namespace Doctrine\Tests;
romanb's avatar
romanb committed
4

romanb's avatar
romanb committed
5 6 7 8 9 10 11
/**
 * 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.
 */
12
class OrmFunctionalTestSuite extends OrmTestSuite
romanb's avatar
romanb committed
13 14 15
{
    protected function setUp()
    {
16
        if ( ! isset($this->sharedFixture['conn'])) {
17
            $this->sharedFixture['conn'] = TestUtil::getConnection();
18
        }
romanb's avatar
romanb committed
19 20 21
    }
    
    protected function tearDown()
22 23 24
    {
        $this->sharedFixture = null;
    }
romanb's avatar
romanb committed
25
}