Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function testLoad() { |
||
36 | |||
37 | // Set the mocks. |
||
38 | $kernel = $this->getMockBuilder(KernelInterface::class)->getMock(); |
||
39 | |||
40 | // We set a container builder with only the necessary. |
||
41 | $container = new ContainerBuilder(new ParameterBag(["kernel.environment" => "dev"])); |
||
42 | $container->set("kernel", $kernel); |
||
43 | |||
44 | $obj = new SyntaxHighlighterExtension(); |
||
45 | |||
46 | $obj->load([], $container); |
||
47 | $this->assertInstanceOf(SyntaxHighlighterTwigExtension::class, $container->get(SyntaxHighlighterTwigExtension::SERVICE_NAME)); |
||
48 | } |
||
51 |