Skip to content

Commit

Permalink
Test empty user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
JayBizzle committed Apr 25, 2016
1 parent 9958297 commit 136938f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/UATests.php
Expand Up @@ -50,6 +50,13 @@ public function testReturnsCorrectMatchedBotName()
$this->assertEquals($this->CrawlerDetect->getMatches(), 'Yahoo Ad monitoring', $matches);
}

public function testEmptyUserAgent()
{
$test = $this->CrawlerDetect->isCrawler(' ');

$this->assertEquals($test, false);
}

public function testForRegexCollision()
{
$crawlers = new Crawlers();
Expand Down

0 comments on commit 136938f

Please sign in to comment.