Completed
Push — master ( bc2781...c6b0bc )
by Andrii
03:12
created

PhpunitConfigControllerTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 3 1
A testInit() 0 4 1
1
<?php
2
3
/*
4
 * PHPUnit plugin for HiDev
5
 *
6
 * @link      https://github.com/hiqdev/hidev-phpunit
7
 * @package   hidev-phpunit
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\phpunit\tests\unit\controllers;
13
14
use hidev\phpunit\controllers\PhpunitConfigController;
15
16
/**
17
 * Test for PhpunitConfigController.
18
 */
19
class PhpunitConfigControllerTest extends \PHPUnit_Framework_TestCase
20
{
21
    /**
22
     * @var PhpunitConfigController
23
     */
24
    protected $object;
25
26
    protected function setUp()
27
    {
28
        $this->object = new PhpunitConfigController('phpunit.xml.dist', null);
29
    }
30
31
    protected function tearDown()
32
    {
33
    }
34
35
    public function testInit()
36
    {
37
        $this->assertSame('xml', $this->object->file->type);
38
    }
39
}
40