Ejemplo n.º 1
0
 public function testIsDetected()
 {
     $browser = new Browser();
     $this->assertFalse($browser->isDetected());
     $browser->reset(['name' => 'Chrome', 'version' => new Version(['value' => '47.0.2526.73', 'details' => 1])]);
     $this->assertTrue($browser->isDetected());
 }
Ejemplo n.º 2
0
 /**
  * Check if a browser was detected
  *
  * @return boolean
  */
 public function isDetected()
 {
     return $this->browser->isDetected() || $this->os->isDetected() || $this->engine->isDetected() || $this->device->isDetected();
 }