Use composer create-project dotzak/leetcode {LOCAL NAME}
to create a new "project".
Replace {LOCAL NAME}
with whatever you intend to name your local directory, e.g. 412 for Fizz Buzz.
NOTE:
This template is meant to be installed once for each solution.
It can definitely be used to house all solutions in one project, that's just not the intended use.
In tests/SolutionTest.php add the tests needed for the given solution.
Run ./vendor/bin/phpunit tests
to test using PHPUnit.
NOTE:
Use the
--testdox
flag to get a list of passed/failed tests by name, i.e.:./vendor/bin/phpunit tests --testdox