Passed
Push — master ( f28aa5...f8cd9d )
by Mike
08:28
created

FacadeTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2
1
<?php
2
namespace XerviceTest\Twig;
3
4
use Xervice\Core\Facade\FacadeInterface;
5
use Xervice\Core\Locator\Dynamic\DynamicLocator;
6
7
/**
8
 * @method \Xervice\Twig\TwigFacade getFacade()
9
 */
10
class FacadeTest extends \Codeception\Test\Unit
11
{
12
    use DynamicLocator;
13
14
    /**
15
     * @group Xervice
16
     * @group Twig
17
     * @group Facade
18
     * @group Integration
19
     * @throws \Core\Locator\Dynamic\ServiceNotParseable
20
     */
21
    public function testRenderTemplate()
22
    {
23
        $this->getFacade()->addTemplatePath(__DIR__ . '/Template');
24
25
        $this->assertEquals(
26
            'This is a Test: Testing',
27
            $this->getFacade()->render(
28
                'test.twig',
29
                [
30
                    'paramTest' => 'Testing'
31
                ]
32
            )
33
        );
34
    }
35
}