Passed
Push — master ( b6b0b7...148695 )
by Gabriel
03:18
created

ControllerViewHydratorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 5
c 1
b 0
f 1
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_populatePath() 0 7 1
1
<?php
2
3
namespace Nip\Controllers\Tests\View;
4
5
use Nip\Controllers\Tests\AbstractTest;
6
use Nip\Controllers\Tests\Fixtures\Controllers\ViewController;
7
use Nip\Controllers\View\ControllerViewHydrator;
8
use Nip\View;
9
10
/**
11
 * Class ControllerViewHydratorTest
12
 * @package Nip\Controllers\Tests\View
13
 */
14
class ControllerViewHydratorTest extends AbstractTest
15
{
16
    public function test_populatePath()
17
    {
18
        $view = new View();
19
        $controller = new ViewController();
20
        ControllerViewHydrator::populatePath($view, $controller);
21
22
        self::assertStringStartsWith($controller->generateViewPath(), $view->getBasePath());
23
    }
24
}