/** * 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()); }