Completed
Push — master ( df6049...d068c5 )
by Antonio
07:08 queued 04:48
created

PhpViewFileHelperTest::testRender()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 7
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
namespace Da\tests\Helper;
3
4
use Da\Mailer\Helper\PhpViewFileHelper;
5
use PHPUnit_Framework_TestCase;
6
7
class PhpViewFileHelperTest extends PHPUnit_Framework_TestCase
8
{
9
    public function testRender()
10
    {
11
        $view = __DIR__ . '/../data/test_view.php';
12
        $content = PhpViewFileHelper::render($view, ['force' => 'force', 'with' => 'with', 'you' => 'you']);
13
14
        $this->assertEquals("The force be with you!\n", $content);
15
    }
16
}
17