Download Latest Version textfile.zip (202 Bytes)
Email in envelope

Get an email when there's a new version of Laravel

Name Modified Size InfoDownloads / Week
Parent folder
Report 2017-07-31
source_without_ignore.php 2017-07-31 44 Bytes
source_without_namespace.php 2017-07-31 198 Bytes
source_with_oneline_annotations.php 2017-07-31 508 Bytes
source_with_namespace.php 2017-07-31 236 Bytes
source_with_ignore.php 2017-07-31 391 Bytes
ignored-lines-text.txt 2017-07-31 119 Bytes
source_with_class_and_anonymous_function.php 2017-07-31 385 Bytes
ignored-lines-crap4j.xml 2017-07-31 1.1 kB
ignored-lines-clover.xml 2017-07-31 1.1 kB
class-with-anonymous-function-crap4j.xml 2017-07-31 1.3 kB
class-with-anonymous-function-text.txt 2017-07-31 254 Bytes
class-with-anonymous-function-clover.xml 2017-07-31 1.4 kB
NotExistingCoveredElementTest.php 2017-07-31 384 Bytes
NamespaceCoveredClass.php 2017-07-31 603 Bytes
NamespaceCoverageProtectedTest.php 2017-07-31 254 Bytes
NamespaceCoveragePublicTest.php 2017-07-31 248 Bytes
NamespaceCoveragePrivateTest.php 2017-07-31 250 Bytes
NamespaceCoverageNotPublicTest.php 2017-07-31 252 Bytes
NamespaceCoverageNotPrivateTest.php 2017-07-31 254 Bytes
NamespaceCoverageNotProtectedTest.php 2017-07-31 258 Bytes
NamespaceCoverageMethodTest.php 2017-07-31 252 Bytes
NamespaceCoverageCoversClassTest.php 2017-07-31 517 Bytes
NamespaceCoverageClassTest.php 2017-07-31 237 Bytes
NamespaceCoverageCoversClassPublicTest.php 2017-07-31 296 Bytes
NamespaceCoverageClassExtendedTest.php 2017-07-31 255 Bytes
CoveredFunction.php 2017-07-31 36 Bytes
CoverageTwoDefaultClassAnnotations.php 2017-07-31 331 Bytes
CoveredClass.php 2017-07-31 587 Bytes
CoveragePublicTest.php 2017-07-31 231 Bytes
CoverageProtectedTest.php 2017-07-31 237 Bytes
CoverageNothingTest.php 2017-07-31 258 Bytes
CoveragePrivateTest.php 2017-07-31 233 Bytes
CoverageNotPublicTest.php 2017-07-31 235 Bytes
CoverageNotProtectedTest.php 2017-07-31 241 Bytes
CoverageNoneTest.php 2017-07-31 175 Bytes
CoverageNotPrivateTest.php 2017-07-31 237 Bytes
CoverageMethodParenthesesWhitespaceTest.php 2017-07-31 260 Bytes
CoverageMethodTest.php 2017-07-31 235 Bytes
CoverageMethodOneLineAnnotationTest.php 2017-07-31 241 Bytes
CoverageMethodParenthesesTest.php 2017-07-31 248 Bytes
CoverageFunctionParenthesesWhitespaceTest.php 2017-07-31 219 Bytes
CoverageFunctionTest.php 2017-07-31 194 Bytes
CoverageClassTest.php 2017-07-31 220 Bytes
CoverageFunctionParenthesesTest.php 2017-07-31 207 Bytes
BankAccountTest.php 2017-07-31 1.5 kB
CoverageClassExtendedTest.php 2017-07-31 238 Bytes
BankAccount-text.txt 2017-07-31 224 Bytes
BankAccount.php 2017-07-31 630 Bytes
BankAccount-clover.xml 2017-07-31 1.7 kB
BankAccount-crap4j.xml 2017-07-31 1.9 kB
Totals: 51 Items   21.8 kB 0

Latest Stable Version Build Status

PHP_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 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 as well as phpdbg 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.

Installation

You can add this library as a local, per-project dependency to your project using Composer:

composer require phpunit/php-code-coverage

If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:

composer require --dev phpunit/php-code-coverage

Using the PHP_CodeCoverage API

<?php
$coverage = new \SebastianBergmann\CodeCoverage\CodeCoverage;
$coverage->start('<name of test>');

// ...

$coverage->stop();

$writer = new \SebastianBergmann\CodeCoverage\Report\Clover;
$writer->process($coverage, '/tmp/clover.xml');

$writer = new \SebastianBergmann\CodeCoverage\Report\Html\Facade;
$writer->process($coverage, '/tmp/code-coverage-report');
Source: README.md, updated 2017-07-31