Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
42 | public function send(MessageInterface $message): void |
||
43 | { |
||
44 | $tag = $this->client->newTag(); |
||
45 | |||
46 | $this->client |
||
47 | ->emit(new AppendCommand($tag, $this->mailbox, strlen((string)$message), new ParenthesizedList())) |
||
48 | ->last() |
||
49 | ->assertContinuation(); |
||
50 | |||
51 | $this->client |
||
52 | ->emit(new AppendDataRequest($tag, $message)) |
||
53 | ->last() |
||
54 | ->assertCompletion(CompletionResult::ok()) |
||
55 | ->assertTagged(); |
||
56 | } |
||
57 | } |