Skip to content

Commit

Permalink
Revert phpunit config update
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanm committed Apr 2, 2023
1 parent fcab618 commit 03310e7
Showing 1 changed file with 36 additions and 41 deletions.
77 changes: 36 additions & 41 deletions phpunit.xml.dist
@@ -1,45 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="true"
backupStaticAttributes="false"
colors="true"
processIsolation="false"

convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"

stopOnError="true"
stopOnFailure="true"
stopOnRisky="true"

beStrictAboutTestsThatDoNotTestAnything="true"
checkForUnintentionallyCoveredCode="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutChangesToGlobalState="true"

forceCoversAnnotation="true"

bootstrap="vendor/autoload.php"
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
backupGlobals="true"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnFailure="true"
stopOnRisky="true"
beStrictAboutTestsThatDoNotTestAnything="true"
checkForUnintentionallyCoveredCode="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutChangesToGlobalState="true"
forceCoversAnnotation="true"
bootstrap="vendor/autoload.php"
>

<listeners>
<listener class="Yoanm\PhpUnitExtended\Listener\YoanmTestsStrategyListener"/>
</listeners>

<testsuites>
<testsuite name="technical">
<directory>tests/Technical</directory>
</testsuite>
<testsuite name="functional">
<directory>tests/Functional</directory>
</testsuite>
</testsuites>

<coverage>
<include>
<directory>src</directory>
</include>
</coverage>
<listeners>
<listener class="Yoanm\PhpUnitExtended\Listener\YoanmTestsStrategyListener"/>
</listeners>


<testsuites>
<testsuite name="technical">
<directory>tests/Technical/Unit/*</directory> <!-- launch unit before => faster than integration -->
<directory>tests/Technical/Integration/*</directory>
</testsuite>
<testsuite name="functional"> <!-- defined functional after technical => longer than technical -->
<directory>tests/Functional/*</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit 03310e7

Please sign in to comment.