1 | <?php |
||
2 | /** |
||
3 | * This file is part of the phpunit-mink library. |
||
4 | * For the full copyright and license information, please view |
||
5 | * the LICENSE file that was distributed with this source code. |
||
6 | * |
||
7 | * @copyright Alexander Obuhovich <[email protected]> |
||
8 | * @link https://github.com/aik099/phpunit-mink |
||
9 | */ |
||
10 | |||
11 | namespace ConsoleHelpers\PHPUnitCompat; |
||
12 | |||
13 | |||
14 | use PHPUnit\Framework\TestResult; |
||
15 | use PHPUnit\Runner\Version; |
||
1 ignored issue
–
show
|
|||
16 | |||
17 | if ( !\defined('PHPUNIT_COMPAT_RUNNER_VERSION') ) { |
||
18 | if ( \class_exists('PHPUnit\Runner\Version') ) { |
||
19 | \define('PHPUNIT_COMPAT_RUNNER_VERSION', Version::id()); |
||
20 | } |
||
21 | else { |
||
22 | \define('PHPUNIT_COMPAT_RUNNER_VERSION', \PHPUnit_Runner_Version::id()); |
||
1 ignored issue
–
show
The type
PHPUnit_Runner_Version 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 ![]() |
|||
23 | } |
||
24 | } |
||
25 | |||
26 | |||
27 | trait TAbstractTestSuiteBody |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * Runs the tests and collects their result in a TestResult. |
||
32 | * |
||
33 | * @param TestResult $result Test result. |
||
34 | * |
||
35 | * @return TestResult |
||
36 | */ |
||
37 | public function runCompat($result = null) |
||
38 | { |
||
39 | return parent::run($result); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Template Method that is called after the tests |
||
44 | * of this test suite have finished running. |
||
45 | */ |
||
46 | protected function tearDownCompat() |
||
47 | { |
||
48 | |||
49 | } |
||
50 | |||
51 | } |
||
52 | |||
53 | |||
54 | if ( version_compare(\PHPUNIT_COMPAT_RUNNER_VERSION, '6.0.0', '<') ) { |
||
55 | require_once __DIR__ . '/AbstractTestSuite5.php'; |
||
56 | } |
||
57 | else { |
||
58 | require_once __DIR__ . '/AbstractTestSuite7.php'; |
||
59 | } |
||
60 |
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