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