| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class TwigAdapterTest extends TestCase |
||
| 13 | { |
||
| 14 | /** @var Environment|MockObject */ |
||
| 15 | private $twigMock; |
||
| 16 | |||
| 17 | public function setUp(): void |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testRendersTemplate(): void |
||
| 23 | { |
||
| 24 | $this->twigMock |
||
| 25 | ->expects($this->once()) |
||
| 26 | ->method('render') |
||
| 27 | ->with('foo.twig.html', ['foo' => 'bar']) |
||
| 28 | ->willReturn('foo'); |
||
| 29 | |||
| 30 | $this->setUpTwig()->render('foo.twig.html', ['foo' => 'bar']); |
||
| 31 | } |
||
| 32 | |||
| 33 | private function setUpTwig(): TwigAdapter |
||
| 43 | } |
||
| 44 | } |
||
| 45 |