/** * @expectedException \Thelia\Exception\FileException */ public function addFileModelWrongClassTest() { $this->fileManager->addFileModel("licorne", "poney", "Thelia\\Model\\Product"); $obj = $this->fileManager->getModelInstance('licorne', 'poney'); }