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

test double using prophesize test result invalid #2118

Closed
mpmaghribi opened this issue Mar 15, 2016 · 2 comments
Closed

test double using prophesize test result invalid #2118

mpmaghribi opened this issue Mar 15, 2016 · 2 comments

Comments

@mpmaghribi
Copy link

Hi, I write some test using prophesize and I found that it not work as expected. The test should fail but it succeed. Here are code sample and environment I use:

code

environment

"doSomethingWithProphetize", which using prophesize, test result is invalid
"doSomethingWithNative", which using getMockForAbstractClass test result is valid

both test should fail

@mpmaghribi
Copy link
Author

Hi, I re run above test using php5.6, and turns out that all test result fail as expected.

screenshot from 2016-03-15 12 57 20

@mpmaghribi mpmaghribi changed the title prophesize test result invalid test double using prophesize test result invalid Mar 15, 2016
@sebastianbergmann
Copy link
Owner

Fixed in PHPUnit 5.2.12.

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

No branches or pull requests

2 participants