Skip to content

Commit

Permalink
[TASK] Enable PHPUnit garbage collector control (#1384)
Browse files Browse the repository at this point in the history
This is disabled by default and enabled with this change.
This has the following effect:

- Deactivate automatic garbage collection using gc_disable() before the
  first test is run
- Trigger garbage collection using gc_collect_cycles() before the first
  test is run
- Trigger garbage collection using gc_collect_cycles() after each n-th
  test
- Trigger garbage collection after using gc_collect_cycles() after the
  last test was run
- Activate automatic garbage collection using gc_enable() after the last
  test was run

Resolves: #1328
  • Loading branch information
DanielSiepmann authored Jul 29, 2024
1 parent 521c57d commit 7dea2dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Build/phpunit/FunctionalTests.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
bootstrap="../../.Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php"
cacheResult="false"
colors="true"
controlGarbageCollector="true"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand Down
1 change: 1 addition & 0 deletions Build/phpunit/UnitTests.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
bootstrap="../../.Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php"
cacheResult="false"
colors="true"
controlGarbageCollector="true"
convertDeprecationsToExceptions="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand Down

0 comments on commit 7dea2dd

Please sign in to comment.