Commit 3ae969f6 authored by Marco Pivetta's avatar Marco Pivetta

#2704 - Removed hacky handling of error handler restore operations - restoring...

#2704 - Removed hacky handling of error handler restore operations - restoring twice in the test instead
parent 663cb650
......@@ -28,13 +28,6 @@ class MysqliConnectionTest extends DbalTestCase
->getMockForAbstractClass();
}
protected function tearDown()
{
if ($this->getName() == "testRestoresErrorHandlerOnException") {
restore_error_handler();
}
}
public function testDoesNotRequireQueryForServerVersion()
{
$this->assertFalse($this->connectionMock->requiresQueryForServerVersion());
......@@ -53,6 +46,8 @@ class MysqliConnectionTest extends DbalTestCase
}
self::assertSame($handler, set_error_handler($default_handler), 'Restoring error handler failed.');
restore_error_handler();
restore_error_handler();
}
/**
......
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