Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function testGetter() |
||
24 | { |
||
25 | /** @var ContainerInterface|\PHPUnit_Framework_MockObject_MockObject $container */ |
||
26 | $container = $this->getMockBuilder(ContainerInterface::class) |
||
27 | ->disableOriginalConstructor() |
||
28 | ->getMock(); |
||
29 | |||
30 | $container->method('get')->willReturn(new IdentityTranslator()); |
||
31 | |||
32 | $obj = new UsingTranslator($container); |
||
33 | |||
34 | $this->assertInstanceOf(IdentityTranslator::class, $obj->getIt()); |
||
35 | } |
||
36 | } |
||
37 |