| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testCreateClient() |
||
| 21 | { |
||
| 22 | $factory = new MockFactory(); |
||
| 23 | $client = $factory->createClient(); |
||
| 24 | |||
| 25 | $this->assertInstanceOf(Client::class, $client); |
||
| 26 | |||
| 27 | $client = new Client(); |
||
| 28 | |||
| 29 | $factory->setClient($client); |
||
| 30 | |||
| 31 | $this->assertEquals($client, $factory->createClient()); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |