-
Create a
Conversionclass and aConversionTestclass. -
Create a function to convert a binary number to a decimal.
-
Write the tests to validate the correct operation.
Clone the repository and move in :
$ git clone https://github.com/JuAlexandre/binary-to-decimal.git
$ cd binary-to-decimal
Launch PHPUnit in the binary-to-decimal folder :
vendo/bin/phpunit