| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | private function setUpTwig(): TwigAdapter |
||
| 34 | { |
||
| 35 | $reflection = new \ReflectionClass(TwigAdapter::class); |
||
| 36 | $twigAdapter = $reflection->newInstanceWithoutConstructor(); |
||
| 37 | |||
| 38 | $reflectionProperty = $reflection->getProperty('twig'); |
||
| 39 | $reflectionProperty->setAccessible(true); |
||
| 40 | $reflectionProperty->setValue($twigAdapter, $this->twigMock); |
||
| 41 | |||
| 42 | return $twigAdapter; |
||
| 43 | } |
||
| 45 |