The src
directory has the LuhnAlgorithm class. The test for this class is in the tests
directory. Comments were added to explain the reasoning behind the code.
Use composer to autoload the classes in src
and tests
directory.
To run the test use the command ./vendor/bin/phpunit
, or the alias you had defiened previously.