Completed
Push — master ( 0260be...e91861 )
by Andrii
02:11
created

PhpunitControllerTest::testBuildTestClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 7
rs 9.4285
c 1
b 1
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 * PHPUnit plugin for HiDev
4
 *
5
 * @link      https://github.com/hiqdev/hidev-phpunit
6
 * @package   hidev-phpunit
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hidev\phpunit\tests\unit\console;
12
13
use hidev\phpunit\console\PhpunitController;
14
use hidev\phpunit\console\PhpunitXmlController;
15
16
/**
17
 * Generated by PHPUnit_SkeletonGenerator on 2015-11-26 at 10:52:52.
18
 */
19
class PhpunitControllerTest extends \PHPUnit\Framework\TestCase
20
{
21
    /**
22
     * @var PhpunitController
23
     */
24
    protected $object;
25
26
    protected function setUp()
27
    {
28
        $this->object = new PhpunitController('phpunit', null);
0 ignored issues
show
Documentation introduced by
null is of type null, but the function expects a object<yii\base\Module>.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
29
    }
30
31
    protected function tearDown()
32
    {
33
    }
34
35
    /**
36
     * @todo   Implement testInit().
37
     */
38
    public function testInit()
39
    {
40
        $this->assertNull($this->object->init());
41
    }
42
43
    public function testGetConfiguration()
44
    {
45
        // $this->assertInstanceOf(PhpunitXmlController::class, $this->object->getConfiguration());
0 ignored issues
show
Unused Code Comprehensibility introduced by
64% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
46
        $this->markTestIncomplete(
47
            'This test has not been implemented yet.'
48
        );
49
    }
50
51
    public function testActionMake()
52
    {
53
        // Remove the following lines when you implement this test.
54
        $this->markTestIncomplete(
55
            'This test has not been implemented yet.'
56
        );
57
    }
58
59
    /**
60
     * @todo   Implement testActionRun().
61
     */
62
    public function testActionRun()
63
    {
64
        // Remove the following lines when you implement this test.
65
        $this->markTestIncomplete(
66
            'This test has not been implemented yet.'
67
        );
68
    }
69
70
    /**
71
     * @todo   Implement testActionGenfake().
72
     */
73
    public function testActionGenfake()
74
    {
75
        // Remove the following lines when you implement this test.
76
        $this->markTestIncomplete(
77
            'This test has not been implemented yet.'
78
        );
79
    }
80
81
    /**
82
     * @todo   Implement testGenFake().
83
     */
84
    public function testGenFake()
85
    {
86
        // Remove the following lines when you implement this test.
87
        $this->markTestIncomplete(
88
            'This test has not been implemented yet.'
89
        );
90
    }
91
92
    /**
93
     * @todo   Implement testActionGentest().
94
     */
95
    public function testActionGentest()
96
    {
97
        // Remove the following lines when you implement this test.
98
        $this->markTestIncomplete(
99
            'This test has not been implemented yet.'
100
        );
101
    }
102
103
    /**
104
     * @todo   Implement testGenSkel().
105
     */
106
    public function testGenSkel()
107
    {
108
        // Remove the following lines when you implement this test.
109
        $this->markTestIncomplete(
110
            'This test has not been implemented yet.'
111
        );
112
    }
113
114
    /**
115
     * @todo   Implement testBuildNamespace().
116
     */
117
    public function testBuildNamespace()
118
    {
119
        // Remove the following lines when you implement this test.
120
        $this->markTestIncomplete(
121
            'This test has not been implemented yet.'
122
        );
123
    }
124
125
    /**
126
     * @todo   Implement testBuildTestNamespace().
127
     */
128
    public function testBuildTestNamespace()
129
    {
130
        // Remove the following lines when you implement this test.
131
        $this->markTestIncomplete(
132
            'This test has not been implemented yet.'
133
        );
134
    }
135
136
    /**
137
     * @todo   Implement testBuildClass().
138
     */
139
    public function testBuildClass()
140
    {
141
        // Remove the following lines when you implement this test.
142
        $this->markTestIncomplete(
143
            'This test has not been implemented yet.'
144
        );
145
    }
146
147
    /**
148
     * @todo   Implement testBuildTestClass().
149
     */
150
    public function testBuildTestClass()
151
    {
152
        // Remove the following lines when you implement this test.
153
        $this->markTestIncomplete(
154
            'This test has not been implemented yet.'
155
        );
156
    }
157
158
    /**
159
     * @todo   Implement testBuildPath().
160
     */
161
    public function testBuildPath()
162
    {
163
        // Remove the following lines when you implement this test.
164
        $this->markTestIncomplete(
165
            'This test has not been implemented yet.'
166
        );
167
    }
168
169
    /**
170
     * @todo   Implement testBuildTestPath().
171
     */
172
    public function testBuildTestPath()
173
    {
174
        // Remove the following lines when you implement this test.
175
        $this->markTestIncomplete(
176
            'This test has not been implemented yet.'
177
        );
178
    }
179
180
    /**
181
     * @todo   Implement testBuildFakePath().
182
     */
183
    public function testBuildFakePath()
184
    {
185
        // Remove the following lines when you implement this test.
186
        $this->markTestIncomplete(
187
            'This test has not been implemented yet.'
188
        );
189
    }
190
}
191