/** * @covers ContentAttachment::getContent */ public function testGetContent() { $content = "Notification content"; $this->object->setContent($content); $actual = $this->object->getContent(); $this->assertSame($content, $actual); }
/** * Add an attachment. * * @param Blob $content the attachment content * @param String $contentType the content type * @param String $fileName a file name for this attachment. */ public function attachContent($content, $contentType, $fileName) { $attachment = new ContentAttachment(); $attachment->setContent($content); $attachment->setContentType($contentType); $attachment->setFileName($fileName); $this->attachments[] = $attachment; }