1 | <?php |
||
18 | final class ProxiedMethodReturnExpressionTest extends TestCase |
||
19 | { |
||
20 | /** |
||
21 | * @dataProvider returnExpressionsProvider |
||
22 | */ |
||
23 | public function testGeneratedReturnExpression( |
||
24 | string $expression, |
||
25 | ?ReflectionMethod $originalMethod, |
||
26 | string $expectedGeneratedCode |
||
27 | ) : void { |
||
28 | self::assertSame($expectedGeneratedCode, ProxiedMethodReturnExpression::generate($expression, $originalMethod)); |
||
|
|||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @psalm-return array<string, array{0: string, 1: ReflectionMethod|null, 2: string}> |
||
33 | */ |
||
34 | public function returnExpressionsProvider() : array |
||
69 | } |
||
70 |
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.