Skip to content

Commit 7ff8cb8

Browse files
committed
Fix the method detection
1 parent b9e5750 commit 7ff8cb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/enqueue-bundle/Tests/Unit/Consumption/Extension/DoctrinePingConnectionExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function testShouldNotReconnectIfConnectionIsOK()
4141
->expects($this->never())
4242
->method('close')
4343
;
44-
if (method_exists($connection, 'connect')) {
44+
if (method_exists(Connection::class, 'connect')) {
4545
// DBAL < 4
4646
$connection->expects($this->never())
4747
->method('connect');
@@ -87,7 +87,7 @@ public function testShouldDoesReconnectIfConnectionFailed()
8787
->expects($this->once())
8888
->method('close')
8989
;
90-
if (method_exists($connection, 'connect')) {
90+
if (method_exists(Connection::class, 'connect')) {
9191
// DBAL < 4
9292
$connection->expects($this->once())
9393
->method('connect');

0 commit comments

Comments
 (0)