https://www.hackerrank.com/challenges/chocolate-feast
Little Bob loves chocolates, and goes to a store with $N in his pocket. The price of each chocolate is $C. The store offers a discount: for every M wrappers he gives to the store, he gets one chocolate for free. How many chocolates does Bob get to eat?
You will need composer.
curl -sS https://getcomposer.org/installer | php
Then, clone this project.
git clone git@github.com:zmarquez/kata-chocolate.git
And install dependences with composer.
php composer.phar install
Then add your classes to 'src/Kata' and your test cases to 'src/Kata/Tests' and run phpunit to run your tests.
php bin/phpunit tests/unit