Refactor the LanguageBatchBo! The goals are:
- increase the inner quality of the code and
- (optional) increase test coverage with unit tests
- Create local git repo for the project
- Commit after every step when the system is in working condition
- The interface of the LanguageBatchBo can't be changed (the generate_language_files.php should remain the same), but (of course) it's content can change and can split into new classes.
- The ApiCall, and Config classes are simplified versions of the original ones, they can not be changed
- The exceptions can be changed
- The console output of can be changed
- Only PHPUnit can be used for testing
- Commenting is not necessary
- You can clone this repo, but the homework should be sent to us through email (with the git files)
docker run --rm -u=1000:1000 -v $(pwd):/app composer/composer install --prefer-dist --dev -o
php composer.phar phpunit
#or
php composer.phar docker-phpunit
php composer.phar generate-translation
#or
php composer.phar docker-generate-translation