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

PluginTest::testConstructor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
c 2
b 1
f 1
dl 0
loc 6
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
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