1 | <?php |
||
22 | trait MailTrait |
||
23 | { |
||
24 | /** |
||
25 | * Returns path to the mail directory |
||
26 | */ |
||
27 | public abstract function getMailDir(); |
||
28 | |||
29 | /** |
||
30 | * Assert that no mail was sent |
||
31 | * |
||
32 | * @return $this |
||
33 | */ |
||
34 | public function assertNoMail() |
||
46 | |||
47 | /** |
||
48 | * Read mail from temporary directory |
||
49 | * |
||
50 | * @return Message |
||
51 | * @throws RuntimeException |
||
52 | */ |
||
53 | public function readMail() |
||
73 | |||
74 | /** |
||
75 | * Wait for mail to read |
||
76 | * |
||
77 | * @return Message |
||
78 | * @throws RuntimeException |
||
79 | */ |
||
80 | public function waitForMail() |
||
102 | |||
103 | /** |
||
104 | * Checks no mail For a certain time |
||
105 | * |
||
106 | * @return $this |
||
107 | */ |
||
108 | public function waitAssertNoMail() |
||
129 | |||
130 | /** |
||
131 | * Returns mail directory iterator |
||
132 | * |
||
133 | * @return RegexIterator |
||
134 | */ |
||
135 | public function createMailDirIterator() |
||
139 | } |
||
140 |