Skip to content

Commit 082d873

Browse files
committed
[TEST] Enable all warnings for the tests
Also drop configuration values that are the same as their corresponding default values.
1 parent 6d92822 commit 082d873

File tree

2 files changed

+11
-24
lines changed

2 files changed

+11
-24
lines changed

Configuration/FunctionalTests.xml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,18 @@
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+
beStrictAboutCoversAnnotation="true"
7+
beStrictAboutOutputDuringTests="true"
78
bootstrap="../.Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php"
89
cacheResult="false"
910
colors="true"
10-
convertDeprecationsToExceptions="false"
11-
convertErrorsToExceptions="true"
12-
convertNoticesToExceptions="true"
13-
convertWarningsToExceptions="true"
11+
convertDeprecationsToExceptions="true"
1412
failOnRisky="true"
1513
failOnWarning="true"
16-
forceCoversAnnotation="false"
17-
stopOnError="false"
18-
stopOnFailure="false"
19-
stopOnIncomplete="false"
20-
stopOnSkipped="false"
21-
verbose="false"
14+
forceCoversAnnotation="true"
2215
>
16+
2317
<php>
2418
<!-- @deprecated: will be removed with next major version, constant TYPO3_MODE is deprecated -->
2519
<const name="TYPO3_MODE" value="BE"/>
@@ -29,7 +23,7 @@
2923
Will always be done with next major version.
3024
To still suppress warnings, notices and deprecations, do NOT define the constant at all.
3125
-->
32-
<!-- <const name="TYPO3_TESTING_FUNCTIONAL_REMOVE_ERROR_HANDLER" value="true"/>-->
26+
<const name="TYPO3_TESTING_FUNCTIONAL_REMOVE_ERROR_HANDLER" value="true"/>
3327
<ini name="display_errors" value="1"/>
3428
<env name="TYPO3_CONTEXT" value="Testing"/>
3529
</php>

Configuration/UnitTests.xml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,18 @@
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+
beStrictAboutCoversAnnotation="true"
7+
beStrictAboutOutputDuringTests="true"
78
bootstrap="../.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php"
89
cacheResult="false"
910
colors="true"
1011
convertDeprecationsToExceptions="true"
11-
convertErrorsToExceptions="true"
12-
convertNoticesToExceptions="true"
13-
convertWarningsToExceptions="true"
1412
failOnRisky="true"
1513
failOnWarning="true"
1614
forceCoversAnnotation="true"
17-
processIsolation="false"
18-
stopOnError="false"
19-
stopOnFailure="false"
20-
stopOnIncomplete="false"
21-
stopOnSkipped="false"
22-
verbose="false"
2315
>
16+
2417
<php>
2518
<!-- @deprecated: will be removed with next major version, constant TYPO3_MODE is deprecated -->
2619
<const name="TYPO3_MODE" value="BE"/>

0 commit comments

Comments
 (0)