Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testCreateService() |
||
19 | { |
||
20 | $locator = $this->prophesize(ContainerInterface::class); |
||
21 | $locator->get('Configuration')->willReturn( |
||
22 | [ |
||
23 | 'mt_mail' => [ |
||
24 | 'transport_options' => [ |
||
25 | 'path' => __DIR__, // directory must exist |
||
26 | ] |
||
27 | ], |
||
28 | ] |
||
29 | ); |
||
30 | $factory = new FileTransportFactory(); |
||
31 | $service = $factory($locator->reveal()); |
||
32 | $this->assertInstanceOf(File::class, $service); |
||
33 | } |
||
34 | } |
||
35 |