public function isMobile() { if ($this->getDevice()->getIsMobile() === true) { return true; } return false; }
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()); }