Update test run guidelines to use the symfony command for executing PHPUnit tests

This commit is contained in:
2025-09-16 11:14:28 +02:00
parent e4d256ceb3
commit bc8f3537ed

View File

@@ -236,12 +236,14 @@ This must be a decision made by a human, not by an AI. Every AI task must abort
The tests are run from the project's root (not from the bundle's root: so, do not change the directory to any bundle directory before running tests).
Tests must be run using the `symfony` command:
```bash
# Run a specific test file
vendor/bin/phpunit path/to/TestFile.php
symfony composer exec phpunit -- path/to/TestFile.php
# Run a specific test method
vendor/bin/phpunit --filter methodName path/to/TestFile.php
symfony composer exec phpunit -- --filter methodName path/to/TestFile.php
```
#### Test Structure