Skip to content

Instantly share code, notes, and snippets.

@Leko
Last active August 29, 2015 14:07
Show Gist options
  • Save Leko/3447c386f074aafdddf1 to your computer and use it in GitHub Desktop.
Save Leko/3447c386f074aafdddf1 to your computer and use it in GitHub Desktop.
PHPUnitの設定ファイルのスケルトン。testsというディレクトリ名でcloneして下さい。
<phpunit
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
printerClass="PHPUnit_TextUI_ResultPrinter"
stopOnError="true"
strict="true"
verbose="true">
<php></php>
<testsuites>
<testsuite name="all">
<directory suffix=".php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./</directory>
<exclude>
<directory suffix=".php">./tests</directory>
</exclude>
</whitelist>
</filter>
<logging>
<log
type="coverage-text"
target="php://stdout"
showUncoveredFiles="true"
lowUpperBound="70"
highLowerBound="90" />
</logging>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment