Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function testLookup() |
||
26 | { |
||
27 | $appKernel = $this->createMock(AppKernelInterface::class); |
||
28 | $appKernel->method('plugins')->willReturn(new \ArrayObject([ |
||
29 | new TestPlugin(), |
||
30 | ])); |
||
31 | |||
32 | $appCfg = new DefaultApplicationConfiguration([ |
||
33 | 'DTO_CLASS_SOURCE_PATH' => __DIR__, |
||
34 | ]); |
||
35 | $cfg = new DTOPluginConfiguration($appCfg); |
||
36 | |||
37 | $fileLocator = new FileLocator( |
||
38 | $cfg, |
||
39 | $appKernel, |
||
40 | ); |
||
41 | |||
42 | $this->assertIsArray($fileLocator->lookup()); |
||
43 | } |
||
45 |