Skip to content

Commit d030e25

Browse files
committed
[TEST] Enable all warnings for the tests
1 parent 6d92822 commit d030e25

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Configuration/FunctionalTests.xml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
44
backupGlobals="true"
55
backupStaticAttributes="false"
6-
beStrictAboutTestsThatDoNotTestAnything="false"
6+
beStrictAboutChangesToGlobalState="true"
7+
beStrictAboutCoversAnnotation="true"
8+
beStrictAboutOutputDuringTests="true"
9+
beStrictAboutTestsThatDoNotTestAnything="true"
710
bootstrap="../.Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php"
811
cacheResult="false"
912
colors="true"
10-
convertDeprecationsToExceptions="false"
13+
convertDeprecationsToExceptions="true"
1114
convertErrorsToExceptions="true"
1215
convertNoticesToExceptions="true"
1316
convertWarningsToExceptions="true"
1417
failOnRisky="true"
1518
failOnWarning="true"
16-
forceCoversAnnotation="false"
19+
forceCoversAnnotation="true"
1720
stopOnError="false"
1821
stopOnFailure="false"
1922
stopOnIncomplete="false"
2023
stopOnSkipped="false"
2124
verbose="false"
2225
>
26+
2327
<php>
2428
<!-- @deprecated: will be removed with next major version, constant TYPO3_MODE is deprecated -->
2529
<const name="TYPO3_MODE" value="BE"/>
@@ -29,7 +33,7 @@
2933
Will always be done with next major version.
3034
To still suppress warnings, notices and deprecations, do NOT define the constant at all.
3135
-->
32-
<!-- <const name="TYPO3_TESTING_FUNCTIONAL_REMOVE_ERROR_HANDLER" value="true"/>-->
36+
<const name="TYPO3_TESTING_FUNCTIONAL_REMOVE_ERROR_HANDLER" value="true"/>
3337
<ini name="display_errors" value="1"/>
3438
<env name="TYPO3_CONTEXT" value="Testing"/>
3539
</php>

Configuration/UnitTests.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
44
backupGlobals="true"
55
backupStaticAttributes="false"
6-
beStrictAboutTestsThatDoNotTestAnything="false"
6+
beStrictAboutChangesToGlobalState="true"
7+
beStrictAboutCoversAnnotation="true"
8+
beStrictAboutOutputDuringTests="true"
9+
beStrictAboutTestsThatDoNotTestAnything="true"
710
bootstrap="../.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php"
811
cacheResult="false"
912
colors="true"
@@ -21,6 +24,7 @@
2124
stopOnSkipped="false"
2225
verbose="false"
2326
>
27+
2428
<php>
2529
<!-- @deprecated: will be removed with next major version, constant TYPO3_MODE is deprecated -->
2630
<const name="TYPO3_MODE" value="BE"/>

0 commit comments

Comments
 (0)