Перейти к содержимому
PHP Ecosystem
Explore

Testing

Это содержимое пока не доступно на вашем языке.

This package provides a consistent set of Composer scripts for local validation.

Tool references:

phpunit.xml.dist loads the package’s internal-function mocks. The suite uses the real bridge lifecycle and a deterministic Yii response. It verifies request limits, HEAD body suppression, emission before after-send, successive requests, failed emission/conversion, and finalization once when after-send throws.

These tests run under PHP CLI; they do not start FrankenPHP. To verify a deployment, use the quick start with the installed runtime and run the migration checks. Check native request reset, session isolation, upload reset, HEAD headers/body, partial-download bytes, and worker restarts. Record the runtime version and distinguish this evidence from mocked unit results.

Run the installed format tools over edited guides and skill files:

Terminal window
markdownlint-cli2 --config .github/linters/.markdown-lint.yml \
README.md UPGRADE.md AGENTS.md 'docs/*.md' 'skills/**/SKILL.md'
prettier --check README.md UPGRADE.md AGENTS.md 'docs/*.md' 'skills/**/SKILL.md'
editorconfig-checker

Run Rector to apply automated code refactoring.

Terminal window
composer rector

Run Easy Coding Standard (ECS) and apply fixes.

Terminal window
composer ecs

Verify that runtime dependencies are correctly declared in composer.json.

Terminal window
composer check-dependencies

Run mutation testing.

Terminal window
composer mutation

Run mutation testing with static analysis enabled.

Terminal window
composer mutation-static

Run static analysis.

Terminal window
composer static

Run the full test suite.

Terminal window
composer tests

Composer scripts support forwarding additional arguments using --.

Run PHPUnit with code coverage report generation.

Terminal window
composer tests -- --coverage-html code_coverage

Run PHPStan with a different memory limit.

Terminal window
composer static -- --memory-limit=512M