Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Last active July 31, 2018 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommcfarlin/3961df8f30a0117a363f5e9f0271dbd6 to your computer and use it in GitHub Desktop.
Save tommcfarlin/3961df8f30a0117a363f5e9f0271dbd6 to your computer and use it in GitHub Desktop.
[PHP] When CloverCoverage Fails And Passes Simultaneously
$ pecl install 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