Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 13, 2025

Description

The setUpBeforeClass() and tearDownAfterClass() type methods should have visibility public and should be static methods, even when invoked via the annotations.

To be honest, I'm a bit surprised PHPUnit didn't flag some of these as errors, but either way, it's fixed now.

Ref: https://docs.phpunit.de/en/9.6/fixtures.html#fixtures-examples-templatemethodstest-php

Suggested changelog entry

N/A

The `setUpBeforeClass()` and `tearDownAfterClass()` type methods should have visibility `public` and should be static methods, even when invoked via the annotations.

To be honest, I'm a bit surprised PHPUnit didn't flag some of these as errors, but either way, it's fixed now.

Ref: https://docs.phpunit.de/en/9.6/fixtures.html#fixtures-examples-templatemethodstest-php
@jrfnl jrfnl added this to the 3.12.0 milestone Mar 13, 2025
@jrfnl jrfnl enabled auto-merge March 13, 2025 04:25
@jrfnl jrfnl merged commit fd9c8b2 into master Mar 13, 2025
61 checks passed
@jrfnl jrfnl deleted the feature/tests-minor-fixture-method-signature-fixes branch March 13, 2025 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant