public function testToWebFormatWithAttachmentCustomFilename() { $email = new Email(); $email->addAttachment('./gif.gif', 'different.jpg'); $json = $email->toWebFormat(); $this->assertEquals($json["files[different.jpg]"], "@./gif.gif"); }