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()); }