コード例 #1
0
ファイル: RISMatcherTest.php プロジェクト: mimmi20/wurfl
 protected function setUp()
 {
     $this->risMatcher = RISMatcher::getInstance();
 }
コード例 #2
0
ファイル: Utils.php プロジェクト: mimmi20/wurfl
 /**
  * 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 Matcher\RISMatcher::getInstance()->match($collection, $needle, $tolerance);
 }