| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function testWillCheckVisibleMethods() : void |
||
| 36 | { |
||
| 37 | /** @var ReflectionMethod|MockObject $to */ |
||
| 38 | $from = $this->createMock(ReflectionMethod::class); |
||
| 39 | /** @var ReflectionMethod|MockObject $from */ |
||
| 40 | $to = $this->createMock(ReflectionMethod::class); |
||
| 41 | |||
| 42 | $result = Changes::fromArray([ |
||
| 43 | Change::changed(uniqid('foo', true), true), |
||
| 44 | ]); |
||
| 45 | |||
| 46 | $this |
||
| 47 | ->functionCheck |
||
| 48 | ->expects(self::any()) |
||
|
|
|||
| 49 | ->method('compare') |
||
| 50 | ->with($from, $to) |
||
| 51 | ->willReturn($result); |
||
| 52 | |||
| 53 | self::assertEquals($result, $this->methodCheck->compare($from, $to)); |
||
| 54 | } |
||
| 56 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.