mirror of
https://gh.wpcy.net/https://github.com/wp-cli/scaffold-command.git
synced 2026-04-27 10:26:26 +08:00
This commit adds ./tests/test-sample.php as an exclusion in the phpunit.xml.dist file, preventing it from executing by default when developers run PHPUnit. Keeping the sample file can be helpful for projects (for instance, if the project is using a custom base test case and/or namespaces), but constantly asserting that true is, in fact, true isn't helpful.
16 lines
389 B
XML
16 lines
389 B
XML
<?xml version="1.0"?>
|
|
<phpunit
|
|
bootstrap="tests/bootstrap.php"
|
|
backupGlobals="false"
|
|
colors="true"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
>
|
|
<testsuites>
|
|
<testsuite>
|
|
<directory prefix="test-" suffix=".php">./tests/</directory>
|
|
<exclude>./tests/test-sample.php</exclude>
|
|
</testsuite>
|
|
</testsuites>
|
|
</phpunit>
|