| 1 | <?php |
||
| 11 | class ResolveExpressionTraitTest extends \Tests\PHPSA\TestCase |
||
| 12 | { |
||
| 13 | use ResolveExpressionTrait; |
||
| 14 | |||
| 15 | public function getDataProviderWithFunctionCallExpr() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @dataProvider getDataProviderWithFunctionCallExpr |
||
| 47 | * |
||
| 48 | * @param $nameExpr |
||
| 49 | * @param $expectedFunctionName |
||
| 50 | */ |
||
| 51 | public function testResolveFunctionName($nameExpr, $expectedFunctionName, $context) |
||
| 63 | } |
||
| 64 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.