Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 988 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 988 Bytes

Tennis Refactoring in PHP

This code was a take home test for a company

Installation

The tennis_game uses:

Recommended:

Clone the repository

git clone [email protected]:fawadabbasi/tennis_game.git

or

git clone https://github.com/fawadabbasi/tennis_game.git

Install all the dependencies using composer

composer install

Folders

  • src - contains the TennisGame interface and three TennisGame classes, which need improving (see top level readme for more information)
  • tests - contains the three corresponding TennisGameTests, one for each class. All the tests are passing, and shouldn't need to be changed.

Testing

PHPUnit is pre-configured to run tests. PHPUnit can be run using a composer script. To run the unit tests,

composer test