Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

phpcov

TextUI frontend for PHP_CodeCoverage

Subscribe to updates I use phpcov


Statistics on phpcov

Number of watchers on Github 0
Number of open issues 0
Main language PHP
Open pull requests 0+
Closed pull requests 0+
Last commit over 7 years ago
Repo Created over 7 years ago
Repo Last Updated about 4 years ago
Size 112 KB
Organization / Authorbadoo
Contributors3
Page Updated
Do you use phpcov? Leave a review!
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating phpcov for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

phpcov

phpcov is a command-line frontend for the PHP_CodeCoverage library.

Installation

phpcov should be installed using the PEAR Installer, the backbone of the PHP Extension and Application Repository that provides a distribution system for PHP packages.

Depending on your OS distribution and/or your PHP environment, you may need to install PEAR or update your existing PEAR installation before you can proceed with the following instructions. sudo pear upgrade PEAR usually suffices to upgrade an existing PEAR installation. The PEAR Manual explains how to perform a fresh installation of PEAR.

The following two commands are all that is required to install phpcov using the PEAR Installer:

pear config-set auto_discover 1
pear install pear.phpunit.de/phpcov

Usage

sb@vmware examples % cat add.php
<?php
$a = 1;
$b = 2;
print $a + $b;

sb@vmware examples % phpcov --clover clover.xml add.php
phpcov 1.0.0 by Sebastian Bergmann.

3

sb@vmware examples % cat clover.xml
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1270365900">
  <project timestamp="1270365900">
    <file name="/usr/local/src/bytekit-cli/examples/add.php">
      <line num="2" type="stmt" count="1"/>
      <line num="3" type="stmt" count="1"/>
      <line num="4" type="stmt" count="1"/>
      <line num="5" type="stmt" count="1"/>
      <metrics loc="4" ncloc="4" classes="0" methods="0"
               coveredmethods="0" conditionals="0"
               coveredconditionals="0" statements="4"
               coveredstatements="4" elements="4"
               coveredelements="4"/>
    </file>
    <metrics files="1" loc="4" ncloc="4" classes="0" methods="0"
             coveredmethods="0" conditionals="0"
             coveredconditionals="0" statements="4"
             coveredstatements="4" elements="4"
             coveredelements="4"/>
  </project>
</coverage>
phpcov list of languages used
Other projects in PHP