Skip to content

dotZak/php-leetcode-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode Template for PHP

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.

Testing

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

About

A project template to for leetcode solutions in PHP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages