You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Important:** If you encounter an error involving SSL certificates, see the **Known Issue: SSL Certificate Error** section below.
11
11
12
+
## Requirements
13
+
14
+
There are several requirements you'll need in order to use the PHP test reporter on your system:
15
+
16
+
-[PHPUnit](http://phpunit.de)
17
+
-[Xdebug](http://xdebug.org)
18
+
-[Composer](http://getcomposer.org)
19
+
20
+
The test reporter uses the [PHPUnit](http://phpunit.de) testing tool to generate [code coverage](http://en.wikipedia.org/wiki/Code_coverage) information. These results show how much of your application's code is being executed by your unit tests. PHPUnit can't generate this information on it's own though - it needs another tool, [Xdebug](http://xdebug.org). This is *not* included as a part of the PHPUnit (or PHP) install by default so you'll need to install it yourself.
21
+
22
+
Xdebug is installed as an extension to PHP, not a library. You can find more information about installing the tool via PECL [on the project website](http://xdebug.org/docs/install).
23
+
24
+
If you execute your PHPUnit tests with the `--coverage-clover` option and receive the message "The Xdebug extension is not loaded. No code coverage will be generated." you will need to visit the Xdebug website and install the extension. If you do not, you'll most likely get an error something like this:
25
+
26
+
```
27
+
PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "[...]/build/logs/clover.xml" in [...]/vendor/satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Api/Jobs.php on line 52
28
+
```
29
+
12
30
## Installation
13
31
14
-
This package requires a user, but not necessarily a paid account, on
15
-
Code Climate, so if you don't have one the first step is to signup at:
32
+
This package requires a user, but not necessarily a paid account, on
33
+
Code Climate, so if you don't have one the first step is to signup at:
16
34
https://codeclimate.com.
17
35
18
36
To install php-test-reporter with Composer run the following command.
@@ -50,18 +68,18 @@ Or invoke `phpunit` as follows:
50
68
$ phpunit --coverage-clover build/logs/clover.xml
51
69
```
52
70
53
-
- Specifying your repo token as an environment variable, invoke the
71
+
- Specifying your repo token as an environment variable, invoke the
0 commit comments