Created
August 14, 2011 22:40
-
-
Save mlively/1145400 to your computer and use it in GitHub Desktop.
Partial mock with no constructor call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mock = Phake::mock('PhakeTest_MockedClass', Phake::ifUnstubbed()->thenCallParent()); | |
//All calls will call the parent by default, you can still stub on an individual | |
//method basis and you can verify any call | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment