Issues (321)

tests/PolyfillTestCase7.php (1 issue)

1
<?php
2
3
use Yoast\PHPUnitPolyfills\TestCases\TestCase;
4
5
// allow hooking code to run within `run` and `fail` via defining `_run` and `_fail` in subclasses
6
abstract class PhpXmlRpc_PolyfillTestCase extends TestCase
7
{
8
    public function _run($result = null) {
9
        return parent::run($result);
10
    }
11
12
    public static function _fail() {}
13
14
    public function run(PHPUnit_Framework_TestResult $result = null) {
0 ignored issues
show
The type PHPUnit_Framework_TestResult 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
        return $this->_run($result);
16
    }
17
18
    public static function fail($message = '') {
19
        static::_fail($message);
20
        parent::fail($message);
21
    }
22
}
23