Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created March 10, 2011 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/863812 to your computer and use it in GitHub Desktop.
Save anonymous/863812 to your computer and use it in GitHub Desktop.
--- 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