Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ignore constructor in property expectations #11

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

JonPurvis
Copy link
Owner

Currently when you use these Expectations:

  • ToBeTriedAgainOnFailure
  • ToHaveRetryInterval
  • ToThrowOnMaxTries
  • ToUseExponentialBackoff

It results in an error because it's expecting data to be passed into the __construct method. This PR updates those expectations to use newInstanceWithoutConstructor() via Reflection, so it bypasses the constructor

Fixes: #8

@JonPurvis JonPurvis changed the title ignore constructor ignore constructor in property expectations Sep 16, 2024
@JonPurvis JonPurvis merged commit fef0b37 into master Sep 16, 2024
28 checks passed
@JonPurvis JonPurvis deleted the ignore-constructor branch September 16, 2024 02:13
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when using toBeTriedAgainOnFailure()
1 participant