Skip to content

Update AdvancedUsage.md: Before/After improvements #888

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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