private function assertEval($value, $string) { $this->assertEqual($value, XHPASTTree::newStatementFromString($string)->evalStatic(), $string); }
private function assertStringVariables($expected, $string) { $statement = XHPASTTree::newStatementFromString($string); $this->assertEqual($expected, $statement->getChildByIndex(0)->getStringVariables(), $string); }