isMobile() public method

public isMobile ( ) : boolean
return boolean
Ejemplo n.º 1
0
 public function testIsMobile()
 {
     $ua = new UserAgent();
     $this->assertFalse($ua->isMobile());
     $ua->getDevice()->setIsMobile(false);
     $this->assertFalse($ua->isMobile());
     $ua->getDevice()->setIsMobile(true);
     $this->assertTrue($ua->isMobile());
 }