|
@@ 91-98 (lines=8) @@
|
| 88 |
|
self::assertInstanceOf(Success::class, $actual); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
public function testCheckConnectionFailed() |
| 92 |
|
{ |
| 93 |
|
$this->connection->method('ping')->willReturn(false); |
| 94 |
|
|
| 95 |
|
$actual = (new CheckConnection($this->connection))->check(); |
| 96 |
|
|
| 97 |
|
self::assertInstanceOf(Failure::class, $actual); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
public function testCheckPoolingShardConnectionSuccessful() |
| 101 |
|
{ |
|
@@ 100-107 (lines=8) @@
|
| 97 |
|
self::assertInstanceOf(Failure::class, $actual); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
public function testCheckPoolingShardConnectionSuccessful() |
| 101 |
|
{ |
| 102 |
|
$this->poolingShardConnection->method('ping')->willReturn(true); |
| 103 |
|
|
| 104 |
|
$actual = (new CheckConnection($this->poolingShardConnection))->check(); |
| 105 |
|
|
| 106 |
|
self::assertInstanceOf(Success::class, $actual); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
public function testCheckPoolingShardConnectionFailed() |
| 110 |
|
{ |
|
@@ 109-116 (lines=8) @@
|
| 106 |
|
self::assertInstanceOf(Success::class, $actual); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
public function testCheckPoolingShardConnectionFailed() |
| 110 |
|
{ |
| 111 |
|
$this->poolingShardConnection->method('ping')->willReturn(false); |
| 112 |
|
|
| 113 |
|
$actual = (new CheckConnection($this->poolingShardConnection))->check(); |
| 114 |
|
|
| 115 |
|
self::assertInstanceOf(Failure::class, $actual); |
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
|