DbalFunctionalTestCase.php 586 Bytes
Newer Older
1 2 3 4 5 6
<?php

namespace Doctrine\Tests;

class DbalFunctionalTestCase extends DbalTestCase
{
7 8
    /* Shared connection when a TestCase is run alone (outside of it's functional suite) */
    private static $_sharedConn;
9 10 11 12
    protected $_conn;

    protected function setUp()
    {
13
        if (isset($this->sharedFixture['conn'])) {
14
            $this->_conn = $this->sharedFixture['conn'];
15 16 17 18 19
        } else {
            if ( ! isset(self::$_sharedConn)) {
                self::$_sharedConn = TestUtil::getConnection();
            }
            $this->_conn = self::$_sharedConn;
20 21
        }
    }
22
}