- PHP 7.1.3 or higher;
git clone https://github.com/jjmonagas/teamcmp-backend-test.git
cd teamcmp-backend-test/
composer install
cd teamcmp-backend-test/
php bin/console teamcmp:import-videos glorf
php bin/console teamcmp:import-videos flub
php bin/console teamcmp:import-videos glorf --path=/feed-exports --filename=glorf.json
php bin/console teamcmp:import-videos flub -p /feed-exports -f flub.yaml
cd teamcmp-backend-test/
php bin/phpunit
php bin/phpunit tests/Command/ImportVideosCommandTest.php
php bin/phpunit tests/Utils/FileDataSourceTest.php
php bin/phpunit tests/GlorfFileJsonSchemaTest.php
This is a Symfony4 project with its new directory structure:
- /src --> Source code
- /src/Command/ImportVideosCommand.php --> Command line code
- /src/Model/ --> Interfaces and Data Models
- /src/Services/ --> Symfony services
- /src/Utils/ --> Helpers and Factories
- /tests --> Unit and Functional tests code
- /feed-exports --> Test files directory