Completed
Push — master ( d7e067...d709bf )
by Andrii
11:31
created

PluginTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 3 1
A testConstructor() 0 6 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\php\tests\unit;
13
14
use hidev\phpunit\goals\PhpunitGoal;
15
use hidev\phpunit\goals\PhpunitXmlGoal;
16
use hidev\phpunit\Plugin;
17
18
/**
19
 * Generated by PHPUnit_SkeletonGenerator on 2015-11-23 at 10:17:16.
20
 */
21
class PluginTest extends \PHPUnit_Framework_TestCase
22
{
23
    /**
24
     * @var Plugin
25
     */
26
    protected $object;
27
28
    /**
29
     * Sets up the fixture, for example, opens a network connection.
30
     * This method is called before a test is executed.
31
     */
32
    protected function setUp()
33
    {
34
        $this->object = new Plugin();
35
    }
36
37
    /**
38
     * Tears down the fixture, for example, closes a network connection.
39
     * This method is called after a test is executed.
40
     */
41
    protected function tearDown()
42
    {
43
    }
44
45
    public function testConstructor()
46
    {
47
        $this->assertTrue(is_object($this->object));
48
        $this->assertSame(PhpunitGoal::className(), $this->object->goals['phpunit']);
49
        $this->assertSame(PhpunitXmlGoal::className(), $this->object->goals['phpunit.xml.dist']);
50
    }
51
}
52