| 1 | <?php |
||
| 13 | trait PHPUnit5CompatTrait |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @deprecated Since PHPUnit 5.4, marked as deprecated here to make it clear when working on 6.7/5.4 branches |
||
| 17 | * @inheritdoc |
||
| 18 | */ |
||
| 19 | public function getMock($originalClassName, $methods = array(), array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $cloneArguments = false, $callOriginalMethods = false, $proxyTarget = null) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Returns a test double for the specified class. |
||
| 37 | * |
||
| 38 | * @internal Forward compatibility with PHPUnit 5/6, so unit tests written on 6.7 & backported to 5.4 can use this. |
||
| 39 | * |
||
| 40 | * @param string $originalClassName |
||
| 41 | * |
||
| 42 | * @return \PHPUnit_Framework_MockObject_MockObject |
||
| 43 | */ |
||
| 44 | protected function createMock($originalClassName) |
||
| 53 | } |
||
| 54 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.