Skip to content

Commit

Permalink
added test to check invalid user agent string against browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetty committed Jan 17, 2019
1 parent 5f2717b commit ac5bfef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/AgentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ public function testVersions()
$platform = $agent->platform();
$this->assertEquals($version, $agent->version($platform), $ua);
}

foreach ($this->browsers as $ua => $browser) {
$agent->setUserAgent('FAKE');
$this->assertFalse($agent->version($browser));
}
}

public function testIsMethods()
Expand Down

0 comments on commit ac5bfef

Please sign in to comment.