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

Fix an issue with describe blocks with matching names #1304

Open
wants to merge 2 commits into
base: 3.x
Choose a base branch
from

Conversation

jshayes
Copy link
Contributor

@jshayes jshayes commented Oct 22, 2024

What:

  • Bug Fix
  • New Feature

Description:

Fixes an issue described here: #1295 (comment)

The issue is caused by using the describe block name to determine if a beforeEach, or similar hook, should be applied. This PR wraps the description in an object so that the strict equal check will only pass when the hook is applied to the same describe block, not just a describe block with the same name.

Related:

#1295 (comment)

src/PendingCalls/DescribeCall.php Outdated Show resolved Hide resolved
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.

2 participants