Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin tommcfarlin/00-phpunit-version.txt Secret

Last active Jul 31, 2018
Embed
What would you like to do?
[PHP] When CloverCoverage Fails And Passes Simultaneously
$ phpunit --version
$ pecl install xdebug
$ mdfind xdebug
/usr/local/lib/php/pecl/20160303/xdebug.so
zend_extension="/usr/local/lib/php/pecl/20160303/xdebug.so"
<?xml version="1.0" encoding="UTF-8"?>
<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
bootstrap="./tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<testsuite name="Plugin">
<directory>./tests</directory>
<exclude>./tests/phpunit</exclude>
<exclude>./src/WordPress/*.php</exclude>
</testsuite>
</testsuites>
<logging>
<log type="coverage-clover" target="./coverage-report/coverage.xml"/>
<log type="coverage-html" target="coverage-report" lowUpperBound="30" highLowerBound="80"/>
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
</logging>
<filter>
<whitelist>
<directory>./src</directory>
</whitelist>
</filter>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.