Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function testCreateService() |
||
30 | { |
||
31 | $config = [ |
||
32 | 'sake_htmlelement' => [ |
||
33 | 'view_helper' => [ |
||
34 | 'default' => [ |
||
35 | 'escapeHtmlAttribute' => true, |
||
36 | 'escapeText' => true, |
||
37 | ], |
||
38 | ], |
||
39 | ], |
||
40 | ]; |
||
41 | |||
42 | $container = $this->prophesize(\Interop\Container\ContainerInterface::class); |
||
43 | |||
44 | $container->get('config')->willReturn($config)->shouldBeCalled(); |
||
45 | |||
46 | $factory = new HtmlElementFactory(); |
||
47 | $htmlElement = $factory($container->reveal()); |
||
48 | |||
49 | $this->assertInstanceOf(HtmlElement::class, $htmlElement); |
||
50 | } |
||
51 | } |
||
52 |