We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9096cad commit e306cb5Copy full SHA for e306cb5
tests/CredisTestCommon.php
@@ -151,6 +151,18 @@ public static function tearDownAfterClass()
151
}
152
153
154
+ /**
155
+ * Polyfill for older PHPUnit
156
+ */
157
+ public function createMock($class)
158
+ {
159
+ if (method_exists($this, 'getMock')) {
160
+ return $this->getMock($class);
161
+ } else {
162
+ return parent::createMock($class);
163
+ }
164
165
+
166
/**
167
* Polyfill for older PHPUnit
168
*/
0 commit comments