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