/** @deprecated */ public function testExceptionOnFileNotFoundInvalidDefault() { $this->setExpectedException('UAParser\\Exception\\FileNotFoundException', 'Please download the "invalidFile" file before using ua-parser by running "php bin/uaparser.php uaparser:update"'); Parser::$defaultFile = 'invalidFile'; new Parser(); }