Passed
Push — master ( 45ab73...eabe48 )
by Victor
45s queued 10s
created

CompositionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
A testVariablesFilterShouldPassOnModelVariablesToIncludedTemplate() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Shoot\Shoot\Tests\Integration\Composition;
5
6
use Shoot\Shoot\Tests\Integration\IntegrationTestCase;
7
8
final class CompositionTest extends IntegrationTestCase
9
{
10
    protected function setUp(): void
11
    {
12
        $this->setTemplateDirectory(__DIR__ . '/Templates');
13
14
        parent::setUp();
15
    }
16
17
    public function testVariablesFilterShouldPassOnModelVariablesToIncludedTemplate(): void
18
    {
19
        $output = $this->renderTemplate('page.twig');
20
21
        $this->assertContains('<h2>item_label</h2>', $output);
22
    }
23
}
24