Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.16 KB

RUNNING_TESTS.md

File metadata and controls

42 lines (27 loc) · 1.16 KB

Running Tests

Prerequisites

PHPUnit

Unit tests use PHPUnit framework (see http://www.phpunit.de for more information). PHPUnit can be installed via Composer together with other development dependencies using the following command from the command line.

php composer install --dev

If you don't have composer, you need to install it:

  1. Get Composer and Follow Installation instructions here
  2. Be sure to install Composer globally: mv composer.phar /usr/local/bin/composer

Running

Once the prerequisites are installed, run the tests from the project root directory:

vendor/bin/phpunit

If the tests are successful, you should see something similar to this. Otherwise, the errors will be displayed.

PHPUnit 5.4.8-2-g44c37e0 by Sebastian Bergmann and contributors.

.                                                                   1 / 1 (100%)

Time: 41 ms, Memory: 3.75MB

OK (1 test, 18 assertions)

Running test coverage report

vendor/bin/phpunit --coverage-html _meta/coverage

Report will be available in _meta/coverage/index.html