Last active
September 20, 2018 10:30
-
-
Save midnite81/0969c957cd6d14f67451c8475a0baf00 to your computer and use it in GitHub Desktop.
A default example of a phpunit file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.5/phpunit.xsd" | |
bootstrap="./vendor/autoload.php" | |
forceCoversAnnotation="false" | |
beStrictAboutCoversAnnotation="true" | |
beStrictAboutOutputDuringTests="true" | |
beStrictAboutTodoAnnotatedTests="true" | |
verbose="true" | |
> | |
<testsuite name="default"> | |
<directory suffix="Test.php">tests</directory> | |
</testsuite> | |
<filter> | |
<whitelist processUncoveredFilesFromWhitelist="true"> | |
<directory suffix=".php">src</directory> | |
</whitelist> | |
</filter> | |
<php> | |
<env name="APP_ENV" value="testing"/> | |
<env name="CACHE_DRIVER" value="array"/> | |
<env name="SESSION_DRIVER" value="array"/> | |
<env name="QUEUE_DRIVER" value="sync"/> | |
</php> | |
<logging> | |
<log type="coverage-clover" target="build/logs/clover.xml"/> | |
</logging> | |
</phpunit> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment