- Install composer on your machine if it isn't already installed [https://getcomposer.org/doc/00-intro.md]
- Install GIT on your local machine if it isn't already installed [https://git-scm.com/book/en/v2/Getting-Started-Installing-Git]
- Fork the repo to your account
- Pull down the project onto your local machine
- Change directory to the project root
- run
git checkout -b YOURNAME
- Run
composer update
- Run
./vendor/bin/phpunit
to display the failing tests, you can do this at any point to test your code.
The challenge is to write the logic for a delivery date calculation within the ShippingDates class.
- The class must conform to the requirements of the defined interface implementing the calculateDeliveryDate method.
- All deliveries are on a 3 day service, there is no time calculation for simplicity.
- No parcel can be dispatched on a Saturday or Sunday.
- No parcel can be delivered on a Saturday or Sunday.
- The code must pass all tests
- Only work in ./src/ShippingDates.php
- Code must conform to PSR-1 and PSR-2 standards
- Methods should be commented with Docblock for parameters and return types
Once you have complete your work add your changes to the stage and commit. Once you have successfully
commit git push origin YOURNAME
. Submit the link to your repo to JH.