Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 589 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 589 Bytes

Numbers to Words PHP test

Setup

  • Fork this repository on GitHub, then clone your fork to your machine
  • Run composer install to install the dependencies (PHPUnit)
  • Run the included unit test by running ./vendor/bin/phpunit

The Test

Build a class that handles converting an integer to it's English string representation. You'll know when you've achieved this as the Unit test will pass. Use the Unit test as a guide to get yourself started.

Notes

  • Don't use the NumberFormatter class
  • Be careful what online resources you use for help, the answer to this is out there.