/** * @expectedException \Pim\Bundle\TransformBundle\Exception\PropertyTransformerException * @expectedExceptionMessage File not found: "/bogus-file" */ public function testUnvalid() { $transformer = new MediaTransformer($this->fileStorer); $transformer->transform('/bogus-file'); }
/** * @expectedException \Pim\Bundle\TransformBundle\Exception\PropertyTransformerException * @expectedExceptionMessage File not found: "/bogus-file" */ public function testUnvalid() { $transformer = new MediaTransformer('Pim\\Bundle\\CatalogBundle\\Model\\ProductMedia'); $transformer->transform('/bogus-file'); }