Commit a1add228 authored by Marco Pivetta's avatar Marco Pivetta

Connection may not have been instantiated

parent ae6522cc
...@@ -42,7 +42,7 @@ class DbalFunctionalTestCase extends DbalTestCase ...@@ -42,7 +42,7 @@ class DbalFunctionalTestCase extends DbalTestCase
protected function tearDown() protected function tearDown()
{ {
while ($this->_conn->isTransactionActive()) { while ($this->_conn && $this->_conn->isTransactionActive()) {
$this->_conn->rollBack(); $this->_conn->rollBack();
} }
} }
......
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