File tree Expand file tree Collapse file tree 3 files changed +3
-23
lines changed
Expand file tree Collapse file tree 3 files changed +3
-23
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- use DirectoryTree \ImapEngine \Connection \FakeStream ;
43use DirectoryTree \ImapEngine \Connection \ImapConnection ;
4+ use DirectoryTree \ImapEngine \Connection \Streams \FakeStream ;
55use DirectoryTree \ImapEngine \Exceptions \ConnectionFailedException ;
66
77test ('connect success ' , function () {
3030 $ connection ->connect ('imap.example.com ' , 143 );
3131})->throws (ConnectionFailedException::class);
3232
33- test ('imap cert validation ' , function () {
34- $ protocol = new ImapConnection ;
35-
36- expect ($ protocol ->getCertValidation ())->toBe (true );
37-
38- $ protocol ->setCertValidation (false );
39-
40- expect ($ protocol ->getCertValidation ())->toBe (false );
41- });
42-
43- test ('imap encryption ' , function () {
44- $ protocol = new ImapConnection ;
45-
46- expect ($ protocol ->getEncryption ())->toBeNull ();
47-
48- $ protocol ->setEncryption ('ssl ' );
49-
50- expect ($ protocol ->getEncryption ())->toBe ('ssl ' );
51- });
52-
5333test ('done ' , function () {
5434 $ stream = new FakeStream ;
5535
Original file line number Diff line number Diff line change 11<?php
22
3- use DirectoryTree \ImapEngine \Connection \FakeStream ;
43use DirectoryTree \ImapEngine \Connection \ImapParser ;
54use DirectoryTree \ImapEngine \Connection \ImapTokenizer ;
65use DirectoryTree \ImapEngine \Connection \Responses \Data \ListData ;
76use DirectoryTree \ImapEngine \Connection \Responses \TaggedResponse ;
87use DirectoryTree \ImapEngine \Connection \Responses \UntaggedResponse ;
8+ use DirectoryTree \ImapEngine \Connection \Streams \FakeStream ;
99use DirectoryTree \ImapEngine \Connection \Tokens \Atom ;
1010use DirectoryTree \ImapEngine \Connection \Tokens \Literal ;
1111use DirectoryTree \ImapEngine \Connection \Tokens \QuotedString ;
Original file line number Diff line number Diff line change 11<?php
22
3- use DirectoryTree \ImapEngine \Connection \FakeStream ;
43use DirectoryTree \ImapEngine \Connection \ImapTokenizer ;
4+ use DirectoryTree \ImapEngine \Connection \Streams \FakeStream ;
55use DirectoryTree \ImapEngine \Connection \Tokens \Atom ;
66use DirectoryTree \ImapEngine \Connection \Tokens \Crlf ;
77use DirectoryTree \ImapEngine \Connection \Tokens \EmailAddress ;
You can’t perform that action at this time.
0 commit comments