Add pear modules, mail and net_smtp via composer (#93)
Add pear modules, mail and net_smtp via composer, remove php 5.6 build due to phpunit 6
This commit is contained in:
@@ -1,25 +1,9 @@
|
||||
[](https://packagist.org/packages/phpunit/php-code-coverage)
|
||||
[](https://travis-ci.org/sebastianbergmann/php-code-coverage)
|
||||
[](https://travis-ci.org/sebastianbergmann/php-code-coverage)
|
||||
|
||||
# PHP_CodeCoverage
|
||||
# SebastianBergmann\CodeCoverage
|
||||
|
||||
**PHP_CodeCoverage** is a library that provides collection, processing, and rendering functionality for PHP code coverage information.
|
||||
|
||||
## Requirements
|
||||
|
||||
PHP 5.6 is required but using the latest version of PHP is highly recommended.
|
||||
|
||||
### PHP 5
|
||||
|
||||
[Xdebug](http://xdebug.org/) is the only source of raw code coverage data supported for PHP 5. Version 2.2.1 of Xdebug is required but using the latest version is highly recommended.
|
||||
|
||||
### PHP 7
|
||||
|
||||
Version 2.4.0 (or later) of [Xdebug](http://xdebug.org/) as well as [phpdbg](http://phpdbg.com/docs) are supported sources of raw code coverage data for PHP 7.
|
||||
|
||||
### HHVM
|
||||
|
||||
A version of HHVM that implements the Xdebug API for code coverage (`xdebug_*_code_coverage()`) is required.
|
||||
**SebastianBergmann\CodeCoverage** is a library that provides collection, processing, and rendering functionality for PHP code coverage information.
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -31,11 +15,16 @@ If you only need this library during development, for instance to run your proje
|
||||
|
||||
composer require --dev phpunit/php-code-coverage
|
||||
|
||||
## Using the PHP_CodeCoverage API
|
||||
## Using the SebastianBergmann\CodeCoverage API
|
||||
|
||||
```php
|
||||
<?php
|
||||
$coverage = new \SebastianBergmann\CodeCoverage\CodeCoverage;
|
||||
use SebastianBergmann\CodeCoverage\CodeCoverage;
|
||||
|
||||
$coverage = new CodeCoverage;
|
||||
|
||||
$coverage->filter()->addDirectoryToWhitelist('/path/to/src');
|
||||
|
||||
$coverage->start('<name of test>');
|
||||
|
||||
// ...
|
||||
|
||||
Reference in New Issue
Block a user