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

Add magic Prophecy method #8

Closed
Haehnchen opened this issue May 1, 2017 · 4 comments
Closed

Add magic Prophecy method #8

Haehnchen opened this issue May 1, 2017 · 4 comments

Comments

@Haehnchen
Copy link
Owner

Haehnchen commented May 1, 2017

prophesize method also returns Prophecy\\Prophecy\\ObjectProphecy and Prophecy\\Prophecy\\MethodProphecy

$foo = $this->prophesize(MYFOO::class);
$foo->find()->willReturn(true); # MISSING willReturn

maxfilatov#27
maxfilatov#28

@King2500
Copy link

King2500 commented May 1, 2017

Remember maxfilatov#7

@King2500
Copy link

King2500 commented May 1, 2017

Does $foo->reveal() return the original target type (MYFOO in your case)?
(Maybe separate issue?)

@Haehnchen
Copy link
Owner Author

thx, opened new issue for reveal support

Haehnchen added a commit that referenced this issue May 2, 2017
@Haehnchen
Copy link
Owner Author

done

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