Проект старый. Выполняю команду
php vendor/bin/codecept generate:test Unit Example
PHP Warning: require_once(File/Iterator/Autoload.php): Failed to open stream: No such file or directory in /var/www/project/vendor/EHER/PHPUnit/src/phpunit/PHPUnit/Autoload.php on line 45
PHP Stack trace:
PHP 1. {main}() /var/www/project/vendor/bin/codecept:0
PHP 2. include() /var/www/project/vendor/bin/codecept:119
PHP 3. require_once() /var/www/project/vendor/codeception/base/codecept:12
PHP 4. include_once() /var/www/project/vendor/codeception/base/autoload.php:12
PHP Fatal error: Uncaught Error: Failed opening required 'File/Iterator/Autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/project/vendor/EHER/PHPUnit/src/phpunit/PHPUnit/Autoload.php:45
Stack trace:
#0 /var/www/project/vendor/codeception/base/autoload.php(12): include_once()
#1 /var/www/project/vendor/codeception/base/codecept(12): require_once('...')
#2 /var/www/project/vendor/bin/codecept(119): include('...')
#3 {main}
thrown in /var/www/project/vendor/EHER/PHPUnit/src/phpunit/PHPUnit/Autoload.php on line 45
Есть один нюанс что проект Autoloader находится /var/www/project/vendor/eher/phpunit/src/phpunit/PHPUnit
Только не пойму почему пути отличаются. Мне как пути переписывать codeception?
Файл config.json
{
"name": "yiisoft/yii2-app-advanced",
"description": "Yii 2 Advanced Project Template",
"keywords": ["yii2", "framework", "advanced", "project template"],
"homepage": "http://www.yiiframework.com/",
"type": "project",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"minimum-stability": "stable",
"require": {
"php": ">=8.1",
"yiisoft/yii2": "~2.0.14",
"yiisoft/yii2-bootstrap": "~2.0.0",
"yiisoft/yii2-swiftmailer": "~2.0.0 || ~2.1.0",
"dektrium/yii2-user": "^0.9.14",
"dektrium/yii2-rbac": "1.0.0-alpha@dev",
"yiister/yii2-gentelella": "~1.0",
"dominus77/yii2-tinymce-widget": "~2.0.2",
"kartik-v/yii2-widget-datepicker": "^1.4",
"kartik-v/yii2-widget-fileinput": "dev-master",
"creocoder/yii2-nested-sets": "^0.9.0",
"kartik-v/yii2-tree-manager": "^1.0",
"voskobovich/yii2-tree-manager": "~1.0",
"kartik-v/yii2-field-range": "^1.3",
"yiisoft/yii2-imagine": "^2.2",
"kartik-v/yii2-widget-datetimepicker": "^1.4",
"mihaildev/yii2-elfinder": "~1.2",
"kartik-v/yii2-mpdf": "dev-master",
"ext-zip": "*",
"xemlock/htmlpurifier-html5": "^0.1.11",
"sonko-dmitry/yii2-telegram-bot-api": "*",
"league/html-to-markdown": "^5.0",
"understeam/yii2-fcm": "~0.1",
"unclead/yii2-multiple-input": "~2.0",
"griffinledingham/php-apple-signin": "^1.1",
"kartik-v/yii2-sortable": "dev-master",
"ext-json": "*",
"ext-mbstring": "*",
"arhitector/transcoder": "dev-master",
"alexantr/yii2-elfinder": "^1.8",
"phpoffice/phpspreadsheet": "^1.29",
"box/spout": "^3.3",
"firebase/php-jwt": "^6.10",
"aksafan/yii2-fcm-both-api": "^0.10.0",
"ext-curl": "*",
"ext-gd": "*"
},
"require-dev": {
"yiisoft/yii2-debug": "~2.1.0",
"yiisoft/yii2-gii": "~2.1.0",
"yiisoft/yii2-faker": "~2.0.0",
"codeception/base": "*",
"phpunit/phpunit": "*",
"codeception/verify": "~1.0.0",
"symfony/browser-kit": ">=2.7 <=4.2.4",
"kint-php/kint": "*"
},
"config": {
"process-timeout": 1800,
"fxp-asset": {
"enabled": false
},
"allow-plugins": {
"yiisoft/yii2-composer": true
}
},
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
}