aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/md/Unit-tests.md12
1 files changed, 4 insertions, 8 deletions
diff --git a/doc/md/Unit-tests.md b/doc/md/Unit-tests.md
index da993109..651b546d 100644
--- a/doc/md/Unit-tests.md
+++ b/doc/md/Unit-tests.md
@@ -18,9 +18,9 @@ $ composer install
18$ composer update 18$ composer update
19``` 19```
20 20
21#### Install and enable Xdebug to generate PHPUnit coverage reports 21#### Install Xdebug
22 22
23See http://xdebug.org/docs/install 23Xdebug must be installed and enable for PHPUnit to generate coverage reports. See http://xdebug.org/docs/install.
24 24
25```bash 25```bash
26# for Debian-based distributions 26# for Debian-based distributions
@@ -31,6 +31,7 @@ $ pacman -S xdebug
31``` 31```
32 32
33Then add the following line to `/etc/php/php.ini`: 33Then add the following line to `/etc/php/php.ini`:
34
34```ini 35```ini
35zend_extension=xdebug.so 36zend_extension=xdebug.so
36``` 37```
@@ -39,12 +40,7 @@ zend_extension=xdebug.so
39 40
40Run `make test` and ensure tests return `OK`. If tests return failures, refer to PHPUnit messages and fix your code/tests accordingly. 41Run `make test` and ensure tests return `OK`. If tests return failures, refer to PHPUnit messages and fix your code/tests accordingly.
41 42
42 43By default, PHPUnit will run all suitable tests found under the `tests` directory. Each test has 3 possible outcomes:
43#### Test results and coverage
44
45By default, PHPUnit will run all suitable tests found under the `tests` directory.
46
47Each test has 3 possible outcomes:
48 44
49- `.` - success 45- `.` - success
50- `F` - failure: the test was run but its results are invalid 46- `F` - failure: the test was run but its results are invalid