Created
March 10, 2011 09:26
-
-
Save anonymous/863812 to your computer and use it in GitHub Desktop.
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
--- TestCase.php.orig 2011-03-10 10:06:42.000000000 +0100 | |
+++ TestCase.php 2011-03-10 10:14:23.000000000 +0100 | |
@@ -1009,6 +1009,16 @@ | |
} | |
/** | |
+ * Register mock object for verification and cleanup | |
+ * | |
+ * @param object $mockObject Mock object instance implementing __phpunit_verify() and __phpunit_cleanup() | |
+ */ | |
+ public function registerMock($mockObject) | |
+ { | |
+ $this->mockObjects[] = $mockObject; | |
+ } | |
+ | |
+ /** | |
* Returns a mock object for the specified class. | |
* | |
* @param string $originalClassName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment