Lines Matching refs:vars
13 $vars = [$assign->var, $assign->expr->left, $assign->expr->right];
14 return [$stmts, $vars];
19 list($stmts, $vars) = $this->getStmtsAndVars();
23 $this->assertSame($vars, $finder->find($stmts, $varFilter));
24 $this->assertSame($vars, $finder->find($stmts[0], $varFilter));
34 list($stmts, $vars) = $this->getStmtsAndVars();
35 $this->assertSame($vars, $finder->findInstanceOf($stmts, Expr\Variable::class));
36 $this->assertSame($vars, $finder->findInstanceOf($stmts[0], Expr\Variable::class));
42 list($stmts, $vars) = $this->getStmtsAndVars();
46 $this->assertSame($vars[0], $finder->findFirst($stmts, $varFilter));
47 $this->assertSame($vars[0], $finder->findFirst($stmts[0], $varFilter));
57 list($stmts, $vars) = $this->getStmtsAndVars();
58 $this->assertSame($vars[0], $finder->findFirstInstanceOf($stmts, Expr\Variable::class));
59 $this->assertSame($vars[0], $finder->findFirstInstanceOf($stmts[0], Expr\Variable::class));