| 1 | <?php |
||
| 8 | class DoTest extends \Tests\PHPSA\TestCase |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Tests do {} while ($stmtTest = 2) creates the variable |
||
| 12 | */ |
||
| 13 | public function testDoConditionCreatesVar() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Tests do { $stmtTest = 2; } while (1 == 1) creates the variable |
||
| 35 | */ |
||
| 36 | public function testDoStatementCreatesVar() |
||
| 57 | } |
||
| 58 |
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.