Test assignment

Requirements

Spin up containers:

$ docker-compose up -d --build

Assignment

Link to assignment

Run Import command

# Glorf file
$ docker-compose exec php bin/console video:import glorf
# Flub file
$ docker-compose exec php bin/console video:import flub

Run Unit tests

$ docker-compose exec -T php /usr/local/bin/php -d xdebug.remote_enable=0 -d xdebug.profiler_enable=0 -d xdebug.default_enable=0 ./vendor/bin/simple-phpunit --testsuite=unit-tests

Check code style

$ docker-compose exec -T php /usr/local/bin/php -d xdebug.remote_enable=0 -d xdebug.profiler_enable=0 -d xdebug.default_enable=0 ./vendor/bin/phpcs --standard=PSR2,PSR1 src

Todo

  • Complete code coverage
  • Add functional tests