These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\ConfigBundle\Tests\DependencyInjection; |
||
4 | |||
5 | use Kunstmaan\ConfigBundle\DependencyInjection\KunstmaanConfigExtension; |
||
6 | use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase; |
||
7 | use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; |
||
8 | |||
9 | /** |
||
10 | * Class KunstmaanConfigExtensionTest |
||
11 | */ |
||
12 | class KunstmaanConfigExtensionTest extends AbstractExtensionTestCase |
||
13 | { |
||
14 | /** |
||
15 | * @return ExtensionInterface[] |
||
0 ignored issues
–
show
|
|||
16 | */ |
||
17 | protected function getContainerExtensions() |
||
18 | { |
||
19 | return [new KunstmaanConfigExtension()]; |
||
20 | } |
||
21 | |||
22 | public function testCorrectParametersHaveBeenSet() |
||
23 | { |
||
24 | $this->load(); |
||
25 | |||
26 | $this->assertContainerBuilderHasParameter('kunstmaan_config'); |
||
27 | $this->assertContainerBuilderHasParameter('kunstmaan_config.menu.adaptor.class'); |
||
28 | $this->assertContainerBuilderHasParameter('kunstmaan_config.twig.extension.class'); |
||
29 | $this->assertContainerBuilderHasParameter('kunstmaan_config.controller.config.class'); |
||
30 | } |
||
31 | } |
||
32 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.