isMatchDecisionKey() 공개 메소드

ユーザーエージェントがキーワードを含むかどうかを判定
public isMatchDecisionKey ( ) : boolean
리턴 boolean
예제 #1
0
 /**
  * URLがエージェント用かどうかを判定
  *
  * @param bool $expect 期待値
  * @param string $userAgent ユーザーエージェントの文字列
  * @return void
  * @dataProvider isMatchDecisionKeyDataProvider
  */
 public function testIsMatchDecisionKey($expect, $userAgent)
 {
     $_SERVER['HTTP_USER_AGENT'] = $userAgent;
     $this->assertEquals($expect, $this->agent->isMatchDecisionKey());
 }