| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function testArrayCastCompile($a, $b) |
||
| 28 | { |
||
| 29 | $baseExpression = new Node\Expr\Cast\Array_( |
||
| 30 | $this->newScalarExpr($a) |
||
| 31 | ); |
||
| 32 | $compiledExpression = $this->compileExpression($baseExpression); |
||
| 33 | |||
| 34 | $this->assertInstanceOfCompiledExpression($compiledExpression); |
||
| 35 | $this->assertSame(CompiledExpression::ARR, $compiledExpression->getType()); |
||
| 36 | $this->assertSame($b, $compiledExpression->getValue()); |
||
| 37 | } |
||
| 38 | |||
| 48 |