Skip to content

Commit

Permalink
Fix: Migrate configuration for phpunit/phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 12, 2023
1 parent 325a5b2 commit e60f5d2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
22 changes: 14 additions & 8 deletions example/test/AutoReview/phpunit.xml
@@ -1,27 +1,33 @@
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutResourceUsageDuringSmallTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="../../../vendor/autoload.php"
cacheDirectory="../../../.build/phpunit/example/auto-review"
cacheResult="true"
cacheResultFile="../../../.build/phpunit/example-auto-review.cache"
colors="true"
columns="max"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
displayDetailsOnIncompleteTests="true"
displayDetailsOnSkippedTests="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
executionOrder="random"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
verbose="true"
>
<source>
<include>
<directory suffix=".php">../Fixture/</directory>
</include>
</source>
<testsuites>
<testsuite name="Auto Review Tests">
<directory>.</directory>
Expand Down
24 changes: 15 additions & 9 deletions example/test/Unit/phpunit.xml
@@ -1,29 +1,35 @@
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutResourceUsageDuringSmallTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
bootstrap="../../../vendor/autoload.php"
cacheDirectory="../../../.build/phpunit/example/unit"
cacheResult="true"
cacheResultFile="../../../.build/phpunit/example-integration.cache"
colors="true"
columns="max"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
displayDetailsOnIncompleteTests="true"
displayDetailsOnSkippedTests="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
displayDetailsOnTestsThatTriggerErrors="true"
displayDetailsOnTestsThatTriggerNotices="true"
displayDetailsOnTestsThatTriggerWarnings="true"
executionOrder="random"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
verbose="true"
>
<source>
<include>
<directory suffix=".php">../Fixture/</directory>
</include>
</source>
<testsuites>
<testsuite name="Integration Tests">
<testsuite name="Unit Tests">
<directory>.</directory>
</testsuite>
</testsuites>
Expand Down

0 comments on commit e60f5d2

Please sign in to comment.