Fix logging in functional tests in case of connection failure

parent 9e9e32e0
......@@ -46,13 +46,14 @@ abstract class FunctionalTestCase extends TestCase
protected function setUp() : void
{
$this->sqlLoggerStack = new DebugStack();
if (! isset(self::$sharedConnection)) {
self::$sharedConnection = TestUtil::getConnection();
}
$this->connection = self::$sharedConnection;
$this->sqlLoggerStack = new DebugStack();
$this->connection->getConfiguration()->setSQLLogger($this->sqlLoggerStack);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment