Issues (5)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

tests/unit/console/PhpunitControllerTest.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * HiDev plugin for PHPUnit
4
 *
5
 * @link      https://github.com/hiqdev/hidev-phpunit
6
 * @package   hidev-phpunit
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2018, 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
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());
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