| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 74 | public function testObjectCastCompile($type, $value) |
||
| 75 | { |
||
| 76 | $baseExpression = new Node\Expr\Cast\Object_( |
||
| 77 | $this->newFakeScalarExpr( |
||
| 78 | $type, |
||
| 79 | $value |
||
| 80 | ) |
||
| 81 | ); |
||
| 82 | $compiledExpression = $this->compileExpression($baseExpression); |
||
| 83 | |||
| 84 | $this->assertInstanceOfCompiledExpression($compiledExpression); |
||
| 85 | $this->assertSame(CompiledExpression::OBJECT, $compiledExpression->getType()); |
||
| 86 | $this->assertEquals((object) $value, $compiledExpression->getValue()); |
||
| 87 | } |
||
| 88 | |||
| 98 |