BaseConfigTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 14 1
A getTestYaml() 0 4 1
A getTimerYaml() 0 4 1
1
<?php
2
/*
3
 * This file is part of the php-utilities package.
4
 *
5
 * (c) Marc Aschmann <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Asm\Test;
12
13
use org\bovigo\vfs\vfsStream;
14
15
/**
16
 * Class BaseConfigTest
17
 *
18
 * @package Asm\Test
19
 * @author Marc Aschmann <[email protected]>
20
 */
21
class BaseConfigTest extends \PHPUnit_Framework_TestCase
22
{
23
    private $root;
24
    private $configFile;
25
    private $configImportFile;
26
    private $configTimerFile;
27
28
    /**
29
     * default setup
30
     */
31
    public function setUp()
32
    {
33
        parent::setUp();
34
35
        $this->root = vfsStream::setup('configs');
36
        $this->configFile = vfsStream::newFile('default.yml')->at($this->root);
37
        $this->configFile->setContent(TestData::getYamlImportConfigFile());
38
39
        $this->configImportFile = vfsStream::newFile('testimport.yml')->at($this->root);
40
        $this->configImportFile->setContent(TestData::getYamlImportFile());
41
42
        $this->configTimerFile = vfsStream::newFile('testTimer.yml')->at($this->root);
43
        $this->configTimerFile->setContent(TestData::getYamlTimerConfigFile());
44
    }
45
46
    /**
47
     * @return mixed
48
     */
49
    public function getTestYaml()
50
    {
51
        return $this->configFile->url();
52
    }
53
54
    /**
55
     * @return mixed
56
     */
57
    public function getTimerYaml()
58
    {
59
        return $this->configTimerFile->url();
60
    }
61
}
62