Most of these problems are taken from exercism.io !
The exercises are ordered roughly in order of difficulty, but it's a bit haphazard.
# Install PHPUnit:
$ wget https://phar.phpunit.de/phpunit.phar
$ chmod +x phpunit.phar
$ sudo mv phpunit.phar /usr/local/bin/phpunit
# Go inside your project folder and:
$ phpunit *test.php --verbose
http://www.commitstrip.com/fr/2016/02/22/when-the-functional-tests-are-all-red/
Write a program that greets the user by name, or by saying "Hello, World!" if no name is given.
Write a program that can calculate the Hamming difference between two DNA strands.
Write a program that will calculate the date that someone turned or will celebrate their 1 Gs anniversary.
Bob is a lackadaisical teenager. In conversation, his responses are very limited.
Determine if a sentence is a pangram.
Write a program that, given a DNA strand, returns its RNA complement (per RNA transcription).
Write a program that converts a number to a string, the contents of which depends on the number's prime factors.
Determine if a word or phrase is an isogram.
Find the difference between the sum of the squares and the square of the sums of the first N natural numbers.
Write a program that, when given a string of digits, can calculate the largest product for a contiguous substring of digits of length n.
Write a function to convert from normal numbers to Roman Numerals: e.g.
Implement a program that translates from English to Pig Latin
Write a program that manages robot factory settings.
Write a program that will take a year and report if it is a leap year.
Write a program that given a phrase can count the occurrences of each word in that phrase.
Write a program that, given a word and a list of possible anagrams, selects the correct sublist.
Write a program that will convert a trinary number, represented as a string (e.g. '102012'), to its decimal equivalent using first principles.
Score a bowling game
Implement a clock that handles times without dates.
Write a program that takes a word problem and returns the answer as an integer.
Compute the result for a game of Hex / Polygon
Write a program that will correctly determine change to be given using the least number of coins