Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function testDoConditionCreatesVar() |
||
14 | { |
||
15 | $context = $this->getContext(); |
||
16 | |||
17 | $statement = new Node\Stmt\Do_( |
||
18 | new Node\Expr\Assign( |
||
19 | new Node\Expr\Variable( |
||
20 | new Node\Name("stmtTest") |
||
21 | ), |
||
22 | $this->newScalarExpr(2) |
||
23 | ) |
||
24 | ); |
||
25 | |||
26 | \PHPSA\nodeVisitorFactory($statement, $context); |
||
27 | |||
28 | $variable = $context->getSymbol("stmtTest"); |
||
29 | |||
30 | self::assertTrue($variable instanceof Variable); |
||
31 | } |
||
32 | |||
58 |