This is the top-level directory structure of the tests
directory:
tests/unit
holds tests that are "regular" PHPUnit tests (implemented usingPHPUnit\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 regularend-to-end
teststests/_files
holds test fixture that is used by tests intests/unit
and/ortests/end-to-end
./phpunit
will run all tests fromtests/unit
andtests/end-to-end
(except the PHAR-specific tests)./phpunit --testsuite unit
will run all tests fromtests/unit
./phpunit --testsuite end-to-end
will run all tests fromtests/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