ConfigurationTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 26
rs 10
c 1
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 3 1
A getConfiguration() 0 4 1
A testBaseParameters() 0 10 1
1
<?php
2
3
/*
4
 * This file is part of
5
 * 
6
 * (c) symball <http://simonball.me>
7
 * 
8
 * For the full copyright and license information, please view the LICENSE file 
9
 * that was distributed with this source code.
10
 */
11
namespace Symball\ReportBundle\Tests\Extension;
12
13
//use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionConfigurationTestCase;
14
use PHPUnit\Framework\TestCase;
15
16
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
17
use Symball\ReportBundle\DependencyInjection\SymballReportExtension;
18
use Symball\ReportBundle\DependencyInjection\Configuration;
19
/**
20
 * Description of ReportBundle
21
 *
22
 * @author Simon Ball <simonball at simonball dot me>
23
 */
24
class ConfigurationTest extends TestCase
25
{
26
    
27
    use ConfigurationTestCaseTrait;
28
    
29
    protected function getContainerExtension() {
30
       return new SymballReportExtension();
31
    }
32
    
33
    protected function getConfiguration()
34
    {
35
        return new Configuration();
36
    }
37
38
    public function testBaseParameters() {
39
        
40
        $this->assertConfigurationIsInvalid(
41
            array(
42
                array()
43
            ),
44
            'default_report_path'
45
        );
46
        
47
    }
48
49
}
50