Running Unit Tests with PHPUnit¶
Symlex comes with a pre-configured PHPUnit environment that automatically executes tests found in src/
:
/var/www/html# bin/phpunit PHPUnit 8.4.3 by Sebastian Bergmann and contributors. ............................................... 47 / 47 (100%) Time: 571 ms, Memory: 12.00 MB OK (47 tests, 145 assertions)
See also TestTools - Adds a service container and self-initializing fakes to PHPUnit