private function doTestTypeFunction(LinkedFlowScope $blind, $name, $arg, $outcome, array $trueOutcome, array $falseOutcome) { $function = new \PHPParser_Node_Expr_FuncCall(new \PHPParser_Node_Name(array($name))); $function->args[] = new \PHPParser_Node_Arg($arg); if ('gettype' !== $name) { $function->setAttribute('type', $this->registry->getNativeType('boolean')); } $this->doTestBinop($blind, 'Equal', $function, $this->resolveOutcome($outcome), $trueOutcome, $falseOutcome); }