| 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 check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.