2009-05-28 02:14:27 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests;
|
|
|
|
|
|
|
|
class DbalFunctionalTestCase extends DbalTestCase
|
|
|
|
{
|
2009-05-30 14:30:05 +04:00
|
|
|
/* Shared connection when a TestCase is run alone (outside of it's functional suite) */
|
|
|
|
private static $_sharedConn;
|
2009-05-30 06:27:50 +04:00
|
|
|
protected $_conn;
|
|
|
|
|
|
|
|
protected function setUp()
|
|
|
|
{
|
2009-05-30 14:30:05 +04:00
|
|
|
if (isset($this->sharedFixture['conn'])) {
|
2009-05-30 13:37:56 +04:00
|
|
|
$this->_conn = $this->sharedFixture['conn'];
|
2009-05-30 14:30:05 +04:00
|
|
|
} else {
|
|
|
|
if ( ! isset(self::$_sharedConn)) {
|
|
|
|
self::$_sharedConn = TestUtil::getConnection();
|
|
|
|
}
|
|
|
|
$this->_conn = self::$_sharedConn;
|
2009-05-30 06:27:50 +04:00
|
|
|
}
|
|
|
|
}
|
2009-05-28 02:14:27 +04:00
|
|
|
}
|