Use shortcut

parent 8f7ea526
...@@ -203,9 +203,7 @@ abstract class AbstractDriverTest extends DbalTestCase ...@@ -203,9 +203,7 @@ abstract class AbstractDriverTest extends DbalTestCase
*/ */
protected function getConnectionMock() : Connection protected function getConnectionMock() : Connection
{ {
return $this->getMockBuilder(Connection::class) return $this->createMock(Connection::class);
->disableOriginalConstructor()
->getMock();
} }
/** /**
......
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