Commit 16ec3379 authored by Sergei Morozov's avatar Sergei Morozov Committed by Marco Pivetta

[DBAL-2546] Fixed the failure of...

[DBAL-2546] Fixed the failure of `Functional\StatementTest::testIncompletelyFetchedStatementDoesNotBlockConnection()` on pdo_mysql + libmysql

The test case being fixed should reset shared connection during teardown as one if its methods modifies connection attributes.
parent 019e114a
...@@ -29,6 +29,13 @@ class PDOConnectionTest extends DbalFunctionalTestCase ...@@ -29,6 +29,13 @@ class PDOConnectionTest extends DbalFunctionalTestCase
} }
} }
protected function tearDown()
{
$this->resetSharedConn();
parent::tearDown();
}
public function testDoesNotRequireQueryForServerVersion() public function testDoesNotRequireQueryForServerVersion()
{ {
$this->assertFalse($this->driverConnection->requiresQueryForServerVersion()); $this->assertFalse($this->driverConnection->requiresQueryForServerVersion());
......
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