/** * Start up the parser by importing the data file to $this->regexes * * @param array $regexes */ public function __construct(array $regexes) { parent::__construct($regexes); $this->deviceParser = new DeviceParser($this->regexes); $this->operatingSystemParser = new OperatingSystemParser($this->regexes); $this->userAgentParser = new UserAgentParser($this->regexes); }
public function tearDown() { AbstractParser::$defaultFile = null; }