public function isBot() { if ($this->getBot()->getIsBot() === true) { return true; } return false; }
public function testIsBot() { $ua = new UserAgent(); $this->assertFalse($ua->isBot()); $ua->getBot()->setIsBot(false); $this->assertFalse($ua->isBot()); $ua->getBot()->setIsBot(true); $this->assertTrue($ua->isBot()); }