Skip to content

Conversation

@ThomasLandauer
Copy link
Member

Page: https://codeception.com/docs/AdvancedUsage#BeforeAfter-Attributes

This is the most important change:

The referenced method needs to be in the same class as the public function.

I took the info from here: https://github.com/Codeception/Codeception/blob/main/src/Codeception/Subscriber/BeforeAfterTest.php#L49 - please doublecheck.

Page: https://codeception.com/docs/AdvancedUsage#BeforeAfter-Attributes

This is the most important change:

> The referenced method needs to be in the same class as the public function.

I took the info from here: https://github.com/Codeception/Codeception/blob/main/src/Codeception/Subscriber/BeforeAfterTest.php#L49 - please doublecheck.
@ThomasLandauer ThomasLandauer changed the title Update AdvancedUsage.md: Before/After improvments Update AdvancedUsage.md: Before/After improvements Jun 5, 2025
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.

1 participant