| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function testExitOpSuccess() |
||
| 12 | { |
||
| 13 | $baseExpression = new Node\Expr\Exit_( |
||
| 14 | $this->newScalarExpr("test") |
||
| 15 | ); |
||
| 16 | $compiledExpression = $this->compileExpression($baseExpression); |
||
| 17 | |||
| 18 | parent::assertInstanceOfCompiledExpression($compiledExpression); |
||
|
|
|||
| 19 | parent::assertSame(CompiledExpression::STRING, $compiledExpression->getType()); |
||
| 20 | parent::assertSame("test", $compiledExpression->getValue()); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |
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.