Created
September 13, 2016 12:54
-
-
Save rullzer/df5db85e89627712583c810d199d5729 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Returns a test double for the specified class. | |
* | |
* @param string $originalClassName | |
* | |
* @return PHPUnit_Framework_MockObject_MockObject | |
* | |
* @throws PHPUnit_Framework_Exception | |
* | |
* @since Method available since Release 5.4.0 | |
*/ | |
protected function createMock($originalClassName) | |
{ | |
return $this->getMockBuilder($originalClassName) | |
->disableOriginalConstructor() | |
->disableOriginalClone() | |
->disableArgumentCloning() | |
->disallowMockingUnknownTypes() | |
->getMock(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment