/** * @expectedException \Exception */ public function testAddDeviceParserInvalid() { $dd = new DeviceDetector(); $dd->addDeviceParser('Invalid'); }