Skip to content

fix: call parent::tearDown() in ConsumerRunnerTest teardown - #65

Merged
trearcul merged 1 commit into
cdn77:masterfrom
trearcul:pv/fix-consumer-runner-test-teardown
Aug 25, 2026
Merged

trearcul merged 1 commit into
cdn77:masterfrom
trearcul:pv/fix-consumer-runner-test-teardown

Conversation

@trearcul

Copy link
Copy Markdown
Collaborator

No description provided.

tearDown() called parent::setUp(), a typo dating back to 42a901b.

This is a no-op change in practice: the parent is PHPUnit's TestCase,
whose setUp() and tearDown() are both empty, and the actual cleanup is
done by clearRabbitMQ() just above. Correcting it keeps the hook honest
so it does not misbehave if a base class is introduced later.
@trearcul
trearcul requested review from judzi and a lite review from Copilot August 25, 2026 11:31
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.46%. Comparing base (ed515ba) to head (f4abf15).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #65      +/-   ##
==========================================
+ Coverage   51.98%   52.46%   +0.47%     
==========================================
  Files          29       29              
  Lines         654      650       -4     
==========================================
+ Hits          340      341       +1     
+ Misses        314      309       -5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an incorrect PHPUnit lifecycle call in ConsumerRunnerTest so the test suite properly runs teardown logic after each test.

Changes:

  • Replace an erroneous parent::setUp() call inside tearDown() with parent::tearDown().

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@trearcul
trearcul merged commit 2f421c6 into cdn77:master Aug 25, 2026
8 checks passed
@trearcul
trearcul deleted the pv/fix-consumer-runner-test-teardown branch August 25, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants