protected function setUp() { if (!isset(self::$_sharedConn)) { self::$_sharedConn = TestUtil::getConnection(); } $this->_conn = self::$_sharedConn; }
protected function setUp() { if (!isset(self::$_sharedConn)) { self::$_sharedConn = TestUtil::getConnection(); } $this->_conn = self::$_sharedConn; $this->_sqlLoggerStack = new \Doctrine\DBAL\Logging\DebugStack(); $this->_conn->getConfiguration()->setSQLLogger($this->_sqlLoggerStack); }
protected function setUp() { if (isset($this->sharedFixture['conn'])) { $this->_conn = $this->sharedFixture['conn']; } else { if (!isset(self::$_sharedConn)) { self::$_sharedConn = TestUtil::getConnection(); } $this->_conn = self::$_sharedConn; } }