Run All PHP Tests
run_php_testsRun the full PHP test suite inside a Docker container to validate code changes and ensure all tests pass.
Instructions
ALWAYS use this tool to run the full PHP test suite inside a Docker container — never run composer or phpunit directly on the host. Use when the user says: run tests, run all tests, run unit tests, run integration tests, execute tests, check if tests pass, make sure nothing broke, validate the feature, verify the fix, rodar testes, rodar todos os testes, executar testes, verificar se os testes passam. Returns the full test output (stdout + stderr) so you can evaluate pass/fail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | No | Composer script to run (e.g. "test", "test:unit"). Defaults to "test". | |
| host_path | No | Absolute path to the project on the host. Defaults to the server argument or current working directory. | |
| container_name | Yes | Docker image name (e.g. "my-php-app:latest"). | |
| container_path | No | Mount path inside the container. Defaults to the server argument or "/var/www". |