ModuleTest::testGetConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
/**
3
 * Sake
4
 *
5
 * @link      http://github.com/sandrokeil/CodeGenerator for the canonical source repository
6
 * @copyright Copyright (c) 2014 Sandro Keil
7
 * @license   http://github.com/sandrokeil/CodeGenerator/blob/master/LICENSE.txt New BSD License
8
 */
9
10
namespace SakeTest\CodeGenerator;
11
12
use \Sake\CodeGenerator\Module;
13
14
/**
15
 * Class ModuleTest
16
 *
17
 * Tests integrity of \Sake\CodeGenerator\Module
18
 */
19
class ModuleTest extends \PHPUnit_Framework_TestCase
20
{
21
    /**
22
     * Tests getConfig() should should return view helper configuration
23
     *
24
     * @covers \Sake\CodeGenerator\Module::getConfig
25
     */
26
    public function testGetConfig()
27
    {
28
        $cut = new Module();
29
        $config = $cut->getConfig();
30
        $this->assertSame(
31
            @include 'config/module.config.php',
32
            $config,
33
            'Module configuration could not be read'
34
        );
35
    }
36
}
37