Composer data update
This commit is contained in:
+7
@@ -402,3 +402,10 @@ $em->flush()->shouldHaveBeenCalled();
|
||||
```
|
||||
|
||||
Such manipulation with doubles is called spying. And with Prophecy it just works.
|
||||
|
||||
|
||||
## FAQ
|
||||
|
||||
### Can I call the original methods on a prophesized class?
|
||||
|
||||
Prophecy does not support calling the original methods on a phrophesized class. If you find yourself needing to mock some methods of a class while calling the original version of other methods, it's likely a sign that your class violates the [single-responsibility principle](https://en.wikipedia.org/wiki/Single-responsibility_principle) and should be refactored.
|
||||
|
||||
Reference in New Issue
Block a user