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

PhpViewFileHelperTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRender() 0 7 1
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