Ejemplo n.º 1
0
 /**
  * Tests the JWebClient::detectBrowser method.
  *
  * @param   string   $p   The expected platform.
  * @param   boolean  $m   The expected mobile result.
  * @param   string   $e   The expected engine.
  * @param   string   $b   The expected browser.
  * @param   string   $v   The expected browser version.
  * @param   string   $ua  The input user agent.
  *
  * @return  void
  *
  * @dataProvider getUserAgentData
  * @since   11.3
  */
 public function testDetectBrowser($p, $m, $e, $b, $v, $ua)
 {
     $this->inspector->detectBrowser($ua);
     // Test the assertions.
     $this->assertEquals($this->inspector->browser, $b, 'Browser detection failed');
     $this->assertEquals($this->inspector->browserVersion, $v, 'Version detection failed');
 }