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

Allow use of ReferenceExpectation in expect calls #5

Closed
wants to merge 1 commit into from

Conversation

mal
Copy link
Contributor

@mal mal commented Jul 27, 2015

ReferenceExpectation does not inherit from EqualException (it's logical parent), and is unable to do as it cannot maintain method signature compatability (the byref ampersands are the cause of that) so instead, add a case to recognise it as a valid exception in SimpleExpectation::isExpectation.

ReferenceExpectation does not inherit from EqualException (it's logical
parent), and is unable to do so while maintaining PHP4 compatability
(the byref ampersands would need removing) so instead, add a case to
recognise it as a valid exception in SimpleExpectation::isExpectation.
@jakoch
Copy link
Member

jakoch commented Jul 27, 2015

You don't have to maintain PHP4 compatibility. (I've already removed the reflection helper for PHP4.)
And you are right: the byref ampersands need to be dropped.

Ok.. closing (in favor of your other pull request).

@jakoch jakoch closed this Jul 27, 2015
@mal mal deleted the fix-reference-expectation branch July 27, 2015 17:03
@mal mal restored the fix-reference-expectation branch July 28, 2015 00:33
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.

None yet

2 participants