1 | <?php |
||||||
2 | |||||||
3 | use PHPUnit\Framework\TestCase; |
||||||
0 ignored issues
–
show
|
|||||||
4 | |||||||
5 | if (class_exists(TestCase::class)) { |
||||||
6 | class_alias(TestCase::class, '\PHPUnit_Framework_TestCase'); |
||||||
7 | } |
||||||
8 | |||||||
9 | if (!defined('OPENSSL_CONF_PATH')) { |
||||||
10 | define('OPENSSL_CONF_PATH', '/etc/ssl/openssl.cnf'); |
||||||
11 | } |
||||||
12 | |||||||
13 | // Mock grommunio Web Log |
||||||
14 | define('LOGLEVEL_ERROR', 0); |
||||||
15 | define('LOGLEVEL_INFO', 0); |
||||||
16 | |||||||
17 | class Log { |
||||||
18 | public static function Write($level, $message) {} |
||||||
0 ignored issues
–
show
The parameter
$level is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() The parameter
$message is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() |
|||||||
19 | } |
||||||
20 | |||||||
21 | abstract class SMIMETest extends PHPUnit_Framework_TestCase {} |
||||||
0 ignored issues
–
show
The type
PHPUnit_Framework_TestCase was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||
22 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths