/phpvendingmachine

The classical vending machine on pure PHP

Primary LanguagePHP

Vending Machine Emulator

This application emulates work with Vending Machine. Written on pure PHP with PHPUnit tests.

Prerequirement

Installed Composer

For good start:

  1. Clone this project: git clone https://github.com/eeonevision/phpvendingmachine.git
  2. Move to the project directory (or import it in any PHP IDE)
  3. Run command for install libs and initialize project: composer install
  4. Run PHPUnit tests: vendor/bin/phpunit

Attention! If you try to execute tests from GUI in Idea IDE, you need to change relative paths to JSON files in folder Content. In command mode (described in good start instruction) all is works as expected.