Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Enable PHPUnit garbage collector control #1384

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

DanielSiepmann
Copy link
Contributor

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 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
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10148526231

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 10148327866: 0.0%
Covered Lines: 46
Relevant Lines: 46

💛 - Coveralls

@oliverklee oliverklee added this to the 4.0.0: Breaking changes milestone Jul 29, 2024
@oliverklee oliverklee merged commit 7dea2dd into main Jul 29, 2024
52 checks passed
@oliverklee oliverklee deleted the 1328-activate-controlgarbagecollector-attribute branch July 29, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Configure the tests to use controlled garbage collection
3 participants