Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function providedAttachmentIsParsedIntoPart(string $attachmentName = null) |
||
39 | { |
||
40 | $attachment = fopen(__DIR__ . '/../../attachments/file2', 'r+b'); |
||
41 | |||
42 | $part = $this->parser->parse($attachment, $attachmentName); |
||
43 | |||
44 | $this->assertEquals($part->id, $attachmentName ?? 'file2'); |
||
45 | $this->assertEquals($part->filename, $attachmentName ?? 'file2'); |
||
46 | $this->assertEquals($part->encoding, Mime::ENCODING_BASE64); |
||
47 | $this->assertEquals($part->disposition, Mime::DISPOSITION_ATTACHMENT); |
||
48 | } |
||
49 | |||
58 |