Hello and welcome on Weglot Talent Assessment !
This PHP test will ask you to implement simple encoding algorithms and tests them with Phpunit.
Requirements:
- Git (https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
- PHP >= 5.3 (https://www.php.net/manual/en/install.php)
- PHP Zip (https://www.php.net/manual/zip.installation.php)
First, you need to fork this repo and clone it on your computer.
Then, when you are ready to start the test you need to run the following command :
php talent-assessment start
This will create an app/
directory where you will find class to implement.
We recommend you to implement class in this order : CompositeEncodingAlgorithm
, OffsetEncodingAlgorithm
and SubstitutionEncodingAlgorithm
.
To run unit tests in order to check your code :
php vendor/bin/phpunit
When you've completed the talent assessment, run the following command :
php talent-assessment finish
Finally, open a pull-request between our repo and your fork here.
- We will test your code with 4 PHP versions (5.6, 7.0, 7.1, 7.2)
- You should not add and commit code, it's managed by the
talent-assessment
commands
Good luck !