| Conditions | 3 |
| Paths | 4 |
| Total Lines | 24 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 23 | public function testPlugin() |
||
| 24 | { |
||
| 25 | $kernel = new AppKernel( |
||
| 26 | [], |
||
| 27 | [ |
||
| 28 | \stdClass::class, |
||
| 29 | ], |
||
| 30 | 'dev' |
||
| 31 | ); |
||
| 32 | |||
| 33 | $kernel->run(); |
||
| 34 | /** @var LocatorFacadeInterface $locator */ |
||
| 35 | $locator = $kernel->container()->get(LocatorFacadeInterface::class); |
||
| 36 | $i = 0; |
||
| 37 | foreach ($locator->lookup(EventListenerClassLocatorInterface::class) as $internalClass) { |
||
| 38 | ++$i; |
||
| 39 | $this->assertTrue(\in_array(EventListenerClassLocatorInterface::class, class_implements($internalClass))); |
||
| 40 | } |
||
| 41 | |||
| 42 | foreach ($locator->lookup('ClassNoExists') as $plugin) { |
||
| 43 | throw new \Exception('Oh, no.'); |
||
| 44 | } |
||
| 45 | |||
| 46 | $this->assertTrue((bool) $i); |
||
| 47 | } |
||
| 49 |