public function testIsImage()
 {
     $attachment = new StandardAttachment();
     $attachment->setMimeType('text/plain');
     $this->assertEquals(false, $attachment->isImage());
     $attachment->setMimeType('image/png');
     $this->assertEquals(true, $attachment->isImage());
 }
 private function makeFooAttachment($mime = 'text/plain')
 {
     $attachment = new StandardAttachment();
     $attachment->setPhysicalName('infinite-streamer-test.txt');
     $attachment->setFilename('test.txt');
     $attachment->setMimeType($mime);
     file_put_contents($this->pathHelper->getFullPath($attachment), 'hello');
     return $attachment;
 }