/** * Returns an instance of the RISMatcher singleton * @return WURFL_Handlers_RISMatcher */ public static function INSTANCE() { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; }
/** * Alias of WURFL_Handlers_Matcher_RISMatcher::match() * @param array $collection * @param string $needle * @param int $tolerance * @return string Matched user agent * @see WURFL_Handlers_Matcher_RISMatcher::match() */ public static function risMatch($collection, $needle, $tolerance) { return WURFL_Handlers_Matcher_RISMatcher::INSTANCE()->match($collection, $needle, $tolerance); }
protected function setUp() { $this->risMatcher = WURFL_Handlers_Matcher_RISMatcher::INSTANCE(); }