isBot() публичный Метод

public isBot ( ) : boolean
Результат boolean
Пример #1
0
 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());
 }