We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d545ff3 commit fbe5025Copy full SHA for fbe5025
1 file changed
tests/Unit/MailboxTest.php
@@ -62,6 +62,20 @@
62
expect($mailbox->config('proxy.username'))->toBe('bar');
63
});
64
65
+test('serialization', function () {
66
+ $mailbox = Mailbox::make([
67
+ 'host' => 'imap.example.com',
68
+ 'username' => 'foo',
69
+ 'password' => 'bar',
70
+ ]);
71
+
72
+ $serialized = serialize($mailbox);
73
74
+ expect(unserialize($serialized))
75
+ ->toBeInstanceOf(Mailbox::class)
76
+ ->config()->toBe($mailbox->config());
77
+});
78
79
test('connect', function () {
80
$mailbox = Mailbox::make();
81
0 commit comments