1 | <?php |
||
2 | /* |
||
3 | * This file is part of the Noiselabs ZfTestCase Behat Extension. |
||
4 | * |
||
5 | * (c) Vítor Brandão <[email protected]> |
||
6 | * |
||
7 | * For the full copyright and license information, please view the LICENSE |
||
8 | * file that was distributed with this source code. |
||
9 | */ |
||
10 | |||
11 | use PHPUnit\Framework\Assert; |
||
12 | use PHPUnit\Framework\TestCase; |
||
13 | |||
14 | if (file_exists(__DIR__ . '/../../vendor/zendframework/zend-test/autoload/phpunit-class-aliases.php')) { |
||
15 | require __DIR__ . '/../../vendor/zendframework/zend-test/autoload/phpunit-class-aliases.php'; |
||
16 | } |
||
17 | |||
18 | if (!class_exists(Assert::class)) { |
||
19 | class_alias(\PHPUnit_Framework_Assert::class, Assert::class); |
||
20 | } |
||
21 | |||
22 | if (!class_exists(TestCase::class)) { |
||
23 | class_alias(\PHPUnit_Framework_TestCase::class, TestCase::class); |
||
0 ignored issues
–
show
|
|||
24 | } |
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