Skip to content

Commit 67706aa

Browse files
committed
[TASK] Enable more warnings in the tests
Also drop configuration values that are the same as their corresponding default values.
1 parent c33d213 commit 67706aa

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

Configuration/FunctionalTests.xml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,16 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
44
backupGlobals="true"
5-
backupStaticAttributes="false"
6-
beStrictAboutTestsThatDoNotTestAnything="false"
5+
beStrictAboutOutputDuringTests="true"
76
bootstrap="../.Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php"
87
cacheResult="false"
98
colors="true"
10-
convertDeprecationsToExceptions="false"
11-
convertErrorsToExceptions="true"
12-
convertNoticesToExceptions="true"
13-
convertWarningsToExceptions="true"
9+
convertDeprecationsToExceptions="true"
1410
failOnRisky="true"
1511
failOnWarning="true"
16-
forceCoversAnnotation="false"
17-
stopOnError="false"
18-
stopOnFailure="false"
19-
stopOnIncomplete="false"
20-
stopOnSkipped="false"
21-
verbose="false"
12+
forceCoversAnnotation="true"
2213
>
14+
2315
<php>
2416
<!-- @deprecated: will be removed with next major version, constant TYPO3_MODE is deprecated -->
2517
<const name="TYPO3_MODE" value="BE"/>
@@ -29,7 +21,7 @@
2921
Will always be done with next major version.
3022
To still suppress warnings, notices and deprecations, do NOT define the constant at all.
3123
-->
32-
<!-- <const name="TYPO3_TESTING_FUNCTIONAL_REMOVE_ERROR_HANDLER" value="true"/>-->
24+
<const name="TYPO3_TESTING_FUNCTIONAL_REMOVE_ERROR_HANDLER" value="true"/>
3325
<ini name="display_errors" value="1"/>
3426
<env name="TYPO3_CONTEXT" value="Testing"/>
3527
</php>

Configuration/UnitTests.xml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,17 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
44
backupGlobals="true"
5-
backupStaticAttributes="false"
6-
beStrictAboutTestsThatDoNotTestAnything="false"
5+
beStrictAboutChangesToGlobalState="true"
6+
beStrictAboutOutputDuringTests="true"
77
bootstrap="../.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php"
88
cacheResult="false"
99
colors="true"
1010
convertDeprecationsToExceptions="true"
11-
convertErrorsToExceptions="true"
12-
convertNoticesToExceptions="true"
13-
convertWarningsToExceptions="true"
1411
failOnRisky="true"
1512
failOnWarning="true"
1613
forceCoversAnnotation="true"
17-
processIsolation="false"
18-
stopOnError="false"
19-
stopOnFailure="false"
20-
stopOnIncomplete="false"
21-
stopOnSkipped="false"
22-
verbose="false"
2314
>
15+
2416
<php>
2517
<!-- @deprecated: will be removed with next major version, constant TYPO3_MODE is deprecated -->
2618
<const name="TYPO3_MODE" value="BE"/>

0 commit comments

Comments
 (0)