We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 874d652 commit 2510198Copy full SHA for 2510198
Tests/Unit/Consumption/Extension/DoctrinePingConnectionExtensionTest.php
@@ -78,10 +78,15 @@ public function testShouldDoesReconnectIfConnectionFailed()
78
->method('isConnected')
79
->willReturn(true)
80
;
81
+
82
+ $exception = class_exists(DriverException::class)
83
+ ? new ConnectionLost('message', $this->createMock(DriverException::class))
84
+ : new ConnectionLost($this->createMock(Doctrine\DBAL\Driver\Exception::class), null);
85
86
$connection
87
->expects($this->once())
88
->method('getDatabasePlatform')
- ->willThrowException(new ConnectionLost('message', $this->createMock(DriverException::class)))
89
+ ->willThrowException($exception)
90
91
92
0 commit comments