mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-24 13:56:12 +01:00

[TASK] Enable PHPUnit garbage collector control (#1384)

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
This commit is contained in:
Daniel Siepmann 2024-07-29 19:02:50 +02:00 committed by GitHub
parent 521c57d886
commit 7dea2ddc0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -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"

View file

@ -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"