Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function testWillCheckVisibleMethods() : void |
||
37 | { |
||
38 | /** @var ReflectionMethod|MockObject $to */ |
||
39 | $from = $this->createMock(ReflectionMethod::class); |
||
40 | /** @var ReflectionMethod|MockObject $from */ |
||
41 | $to = $this->createMock(ReflectionMethod::class); |
||
42 | |||
43 | $result = Changes::fromArray([ |
||
44 | Change::changed(uniqid('foo', true), true), |
||
45 | ]); |
||
46 | |||
47 | $this |
||
48 | ->functionCheck |
||
49 | ->expects(self::any()) |
||
|
|||
50 | ->method('compare') |
||
51 | ->with($from, $to) |
||
52 | ->willReturn($result); |
||
53 | |||
54 | self::assertEquals($result, $this->methodCheck->compare($from, $to)); |
||
55 | } |
||
57 |
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.