TwigTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 5

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_that_the_cache_folder_gets_configured() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace phpDocumentor\Application\Stage;
6
7
use phpDocumentor\Descriptor\ProjectDescriptorBuilder;
8
use \Mockery as m;
9
10
final class TwigTest extends \Mockery\Adapter\Phpunit\MockeryTestCase
11
{
12
    public function test_that_the_cache_folder_gets_configured()
13
    {
14
        $twig = new \Twig\Environment();
15
        $config = [ 'phpdocumentor' => [ 'paths' => [ 'cache' => 'phpdoc-cache' ] ] ];
16
17
        (new Twig($twig))(new Payload($config, m::mock(ProjectDescriptorBuilder::class)));
18
19
        $this->assertSame('phpdoc-cache/twig', $twig->getCache());
20
    }
21
}
22