Behavior Driven Design - Intro to PHPUnit
Count up to a given number and returns either a counting number, or ping if divisible by three, pong if divisible by five and pingpong if divisible by three and five.
PHP, Silex, Twig, HTML, CSS and Bootstrap.
To use the code, you can clone the repository at https://github.com/jryanconklin/epicodus-php-pingpong.
Specification - Counts up to inputted number
Input: 2 Output: 1, 2
Specification - Numbers divisible by three are returned as “ping”
Input: 3 Output: 1, 2, “ping”
Specification - Numbers divisible by five are changed to “pong”
Input: 5 Output: 1, 2, “ping”, 4, “pong”
Specification - Numbers divisible by three and five are returned as “pingpong”
Input: 15 Output: pingpong
J. Ryan Conklin
##License This work can be used under the MIT License. Copyright (c) 2016 J. Ryan Conklin