blakeembrey / code-problems

Common code and interview problems solved in multiple languages
MIT License
3.81k stars 509 forks source link

Add more php unit test cases and fix the php solution. #177

Closed caoglish closed 7 years ago

caoglish commented 7 years ago

fix bug:

reverse-words-in-string.php (according the description, the string need to be trimed.)

Format the code:

solutions/php/sum-of-array-plus-one.php tests/php/factorialTest.php

Add unit test:

reverseWordsInStringTest.php sumOfArrayPlusOneTest.php