/**
  * @dataProvider quickHeadersData
  * @covers Agent::checkHttpHeadersForMobile
  */
 public function testQuickHeaders($headers)
 {
     $md = new Agent($headers);
     $this->assertTrue($md->checkHttpHeadersForMobile());
 }
Exemplo n.º 2
0
 /**
  * Check the HTTP headers for signs of mobile.
  * 
  * This is the fastest mobile check possible; it's used
  * inside isMobile() method.
  *
  * @return bool 
  * @static 
  */
 public static function checkHttpHeadersForMobile()
 {
     //Method inherited from \Mobile_Detect
     return \Jenssegers\Agent\Agent::checkHttpHeadersForMobile();
 }