Codeception和PHPUnit兼容性

时间:2018-07-25 09:55:08

标签: phpunit codeception

运行“ codecept run”时出现此错误

readpast

Composer json

Fatal error: Declaration of Codeception\Test\Unit::getDependencies() must be compatible with PHPUnit\Framework\TestCase::getDependencies(): array in C:\www\taxi\public\vendor\codeception\codeception\src\Codeception\Test\Unit.php on line 14

Call Stack:
    0.2039     395560   1. {main}() C:\www\taxi\public\vendor\codeception\codeception\codecept:0
    0.2046     416240   2. require_once('C:\www\taxi\public\vendor\codeception\codeception\autoload.php') C:\www\taxi\public\vendor\codeception\codeception\codecept:7
    0.2498    1926160   3. include_once('C:\www\taxi\public\vendor\codeception\codeception\shim.php') C:\www\taxi\public\vendor\codeception\codeception\autoload.php:24
    0.2545    2070368   4. spl_autoload_call() C:\www\taxi\public\vendor\codeception\codeception\shim.php:23
    0.2545    2070408   5. Composer\Autoload\ClassLoader->loadClass() C:\www\taxi\public\vendor\codeception\codeception\shim.php:23
    0.2549    2070520   6. Composer\Autoload\includeFile() C:\www\taxi\public\vendor\composer\ClassLoader.php:322
    0.2552    2092160   7. include('C:\www\taxi\public\vendor\codeception\codeception\src\Codeception\Test\Unit.php') C:\www\taxi\public\vendor\composer\ClassLoader.php:444

我遇到了兼容问题?

0 个答案:

没有答案