| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function testLoad() |
||
| 27 | { |
||
| 28 | $kernel = $this->createMock(KernelInterface::class); |
||
| 29 | $kernel |
||
| 30 | ->expects($this->once()) |
||
| 31 | ->method('plugins') |
||
| 32 | ->willReturn(new \ArrayObject([ |
||
| 33 | new \stdClass(), |
||
| 34 | $this->createMock(ExtensionInterface::class), |
||
| 35 | $this->createMock(TwigTemplatePluginInterface::class), |
||
| 36 | ])); |
||
| 37 | |||
| 38 | $loader1 = $this->createMock(LoaderInterface::class); |
||
| 39 | $loader2 = $this->createMock(LoaderInterface::class); |
||
| 40 | |||
| 41 | $loaderProcessor = new LoaderProcessor( |
||
| 42 | $kernel, |
||
| 43 | new \ArrayObject([ |
||
| 44 | $loader1, $loader2, |
||
| 45 | ]), |
||
| 46 | ); |
||
| 47 | |||
| 48 | $twigEnv = $this->createMock(Environment::class); |
||
| 49 | $loaderProcessor->load($twigEnv); |
||
| 50 | } |
||
| 52 |