| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 21 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 41 | public function testConnection(): void | ||
| 42 |     { | ||
| 43 | $count = 0; | ||
| 44 | |||
| 45 |         $config = ['connectionStrategy' => static function ($connections) use (&$count): Connection { | ||
| 46 | ++$count; | ||
| 47 | |||
| 48 | return \current($connections); | ||
| 49 | }]; | ||
| 50 | |||
| 51 | $client = $this->_getClient($config); | ||
| 52 |         $response = $client->request('_aliases'); | ||
| 53 | |||
| 54 | $this->assertEquals(1, $count); | ||
| 55 | |||
| 56 | $this->assertTrue($response->isOk()); | ||
| 57 | |||
| 58 | $strategy = $client->getConnectionStrategy(); | ||
| 59 | |||
| 60 | $this->assertInstanceOf(CallbackStrategy::class, $strategy); | ||
| 61 | } | ||
| 62 | } | ||
| 63 |