|
|
před 2 roky | |
|---|---|---|
| .. | ||
| _files | před 2 roky | |
| end-to-end | před 2 roky | |
| static-analysis | před 2 roky | |
| unit | před 2 roky | |
| README.md | před 2 roky | |
| bootstrap.php | před 2 roky | |
This is the top-level directory structure of the tests directory:
tests/unit holds tests that are "regular" PHPUnit tests (implemented using PHPUnit\Framework\TestCase)tests/end-to-end holds tests in the PHPT formattests/end-to-end/phar holds PHAR-specific tests that are not part of the regular end-to-end teststests/static-analysis holds test fixture that is used for static analysis of PHPUnit's API using Psalmtests/_files holds test fixture that is used by tests in tests/unit and/or tests/end-to-end./phpunit will run all tests from tests/unit and tests/end-to-end (except the PHAR-specific tests)./phpunit --testsuite unit will run all tests from tests/unit./phpunit --testsuite end-to-end will run all tests from tests/end-to-end (except the PHAR-specific tests)ant phar-snapshot run-phar-specific-tests will build a PHAR and run the PHAR-specific tests./tools/psalm --config=.psalm/static-analysis.xml will run the static analysis of PHPUnit's API using Psalm