2012-08-26 06:49:11 +08:00
|
|
|
Running unit tests
|
|
|
|
==================
|
|
|
|
|
|
|
|
In order to run these tests, you will need to install the following packages
|
|
|
|
and its dependencies:
|
|
|
|
* phpunit
|
2016-11-13 18:01:51 +08:00
|
|
|
* php-gd
|
2016-12-25 17:58:35 +08:00
|
|
|
* php-sqlite3
|
2016-11-13 18:01:51 +08:00
|
|
|
* php-xdebug
|
2012-08-26 06:49:11 +08:00
|
|
|
|
|
|
|
Example for Debian and Ubuntu:
|
2016-09-15 05:55:55 +08:00
|
|
|
```sh
|
2016-11-13 18:01:51 +08:00
|
|
|
$ sudo aptitude install phpunit php-gd php-sqlite php-xdebug
|
2016-09-15 05:55:55 +08:00
|
|
|
```
|
2012-08-26 06:49:11 +08:00
|
|
|
|
|
|
|
To run the tests, just change into this directory and run phpunit:
|
2016-09-15 05:55:55 +08:00
|
|
|
```sh
|
|
|
|
$ cd PrivateBin/tst
|
|
|
|
$ phpunit
|
|
|
|
```
|