jryanconklin / epicodus-php-pingpong

A PingPong Test in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ping Pong

Behavior Driven Design - Intro to PHPUnit

Features

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.

Technologies

PHP, Silex, Twig, HTML, CSS and Bootstrap.

Usage

To use the code, you can clone the repository at https://github.com/jryanconklin/epicodus-php-pingpong.

Specifications

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

Author/s

J. Ryan Conklin

##License This work can be used under the MIT License. Copyright (c) 2016 J. Ryan Conklin

About

A PingPong Test in PHP


Languages

Language:PHP 100.0%