This library allows you to compare the performance of different versions of the "kaspi/di-container" package.
Up-to-date performance comparison results for the "kaspi/di-container" package using this library can be found in the kaspi-di-container-bench repository.
Running tests without code coverage analysis:
composer testRunning tests with code coverage analysis:
composer test-coverWe use the PHPStan package for static analysis:
composer statTo bring the code into compliance with standards, we use friendsofphp/php-cs-fixer, which is declared in the composer dev dependency:
composer fixerYou can specify the PHP version image in the .env file using the PHP_IMAGE key.
By default, the container is built using the php:8.1-cli-alpine image.
docker-compose builddocker-compose run --rm php composer install🔔 If make is installed on the system:
make installRunning tests without code coverage analysis:
docker-compose run --rm php vendor/bin/phpunit --no-coverage🔔 If make is installed on the system:
make testRunning tests with code coverage analysis:
docker-compose run --rm php vendor/bin/phpunit🔔 If make is installed on the system:
make test-coverdocker-compose run --rm php vendor/bin/phpstan🔔 If make is installed on the system:
make statIf make is installed, run the code-style check, static analyzer, and tests:
make allIf make is installed, the vendor directory and composer.lock file are removed before running the tests;
dependencies are installed, and only then are the tests executed:
make test-supports-phpYou can work in the shell within a Docker container:
docker-compose run --rm php sh