17 protected function _before()
19 $this->parser = new \Udger\Parser(
20 \Codeception\Util\Stub::makeEmpty(
"Psr\Log\LoggerInterface"),
21 \Codeception\Util\Stub::makeEmpty(
"Udger\Helper\IP"));
24 protected function _after()
29 public function testParseWithMissingDatfile()
31 $useragent =
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36';
33 $this->setExpectedException(
"Exception",
"Unable to expand filepath");
34 $this->parser->parse($useragent);