Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function testCreateClient(): void |
||
17 | { |
||
18 | if (!class_exists(HttplugClient::class)) { |
||
19 | $this->markTestSkipped('Symfony Http client is not installed'); |
||
20 | } |
||
21 | |||
22 | $factory = new SymfonyFactory( |
||
23 | $this->getMockBuilder(ResponseFactoryInterface::class)->getMock(), |
||
24 | $this->getMockBuilder(StreamFactoryInterface::class)->getMock() |
||
25 | ); |
||
26 | $client = $factory->createClient(); |
||
27 | |||
28 | $this->assertInstanceOf(HttplugClient::class, $client); |
||
29 | } |
||
30 | } |
||
31 |