| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function testIntCastCompile($a, $b) |
||
| 33 | { |
||
| 34 | $baseExpression = new Node\Expr\Cast\Int_( |
||
| 35 | $this->newScalarExpr($a) |
||
| 36 | ); |
||
| 37 | $compiledExpression = $this->compileExpression($baseExpression); |
||
| 38 | |||
| 39 | $this->assertInstanceOfCompiledExpression($compiledExpression); |
||
| 40 | $this->assertSame(CompiledExpression::INTEGER, $compiledExpression->getType()); |
||
| 41 | $this->assertSame($b, $compiledExpression->getValue()); |
||
| 42 | } |
||
| 43 | |||
| 53 |