Testing and static analysis tools bundle for Symfony projects
- PHP 7.1 or higher
- Composer
The recommended way to install this library is with Composer. Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project.
# Install Composer
curl -sS https://getcomposer.org/installer | php
You can add this library as a dependency to your project using following command:
composer require protacon/test-tools-bundle
Bundle exposes few Symfony commands in the test-tools
namespace you can utilize
./bin/console test-tools:init Initialize test tools
./bin/console test-tools:check Check outdated vendor dependencies
I highly recommend that you use "proper" IDE to development your application. Below is short list of some popular IDEs that you could use.
If you're using PhpStorm following links will help you to get things rolling.
Library uses PHPUnit for testing. You can run all tests by following command:
./vendor/bin/phpunit
Or you could easily configure your IDE to run those for you.
Bundle provides a Dockerfile and docker-compose configuration to develop the bundle in the container with the all tools necessary installed
docker-compose up -d
docker-compose exec app sh
Copyright (c) 2019 Protacon