Testing
Это содержимое пока не доступно на вашем языке.
Install development dependencies from the chosen package revision, then run these checks from the package root:
composer testscomposer staticvendor/bin/ecs checkcomposer check-dependenciescomposer ecs applies fixes; use the direct ECS check above for a read-only style check. PHPStan analyzes source
and tests at the configured maximum level. PHPUnit fails on risky tests and warnings.
CI runs PHP 8.3, 8.4, and 8.5 separately with Yii 2.0.55 (the minimum supported release) and 22.0.x-dev. To repeat
either resolution locally, use separate disposable checkouts so their dependencies and lock files cannot affect each other:
composer update --with yiisoft/yii2:2.0.55 --with-all-dependenciescomposer testscomposer auditRepeat in the other checkout with --with yiisoft/yii2:22.0.x-dev. Keep advisory blocking enabled for both runs.
To focus on worker session and response lifecycle regressions:
vendor/bin/phpunit tests/http/stateless/ApplicationSessionTest.phpvendor/bin/phpunit tests/http/stateless/ApplicationFinalizeTest.phpValidate the application’s actual worker integration too: alternate two visitors, omit cookies on the next request,
send malformed session cookie values, exercise an upload followed by no upload, and force emission failure. Confirm
after-send runs only after successful emission. Repeat with useSession=false when using lazy sessions.
Mutation testing is a separate, slower check that needs a supported coverage driver:
composer mutationcomposer rector modifies source; do not run it as a read-only validation command. Report the PHP version, resolved
dependencies, passed checks, and unavailable coverage/runtime tests rather than treating a skipped check as passed.
See agent validation stages for skill installation and native discovery checks.