Passed
Push — master ( 20ba69...1ea7e6 )
by Victor
47s queued 11s
created

CompositionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
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
    /** @var string */
11
    protected $templateDirectory = __DIR__ . '/Templates';
12
13
    /**
14
     * @return void
15
     */
16
    public function testVariablesFilterShouldPassOnModelVariablesToIncludedTemplate()
17
    {
18
        $output = $this->renderTemplate('page.twig');
19
20
        $this->assertContains('<h2>item_label</h2>', $output);
21
    }
22
}
23