@@ 123-135 (lines=13) @@ | ||
120 | ); |
|
121 | } |
|
122 | ||
123 | public function testAddCCMultiple() |
|
124 | { |
|
125 | $archangel = new Archangel(); |
|
126 | $archangel->addCC('[email protected]'); |
|
127 | $archangel->addCC('[email protected]'); |
|
128 | $headersProperty = $this->getProtectedProperty('headers'); |
|
129 | $headers = $headersProperty->getValue($archangel); |
|
130 | ||
131 | $this->assertArraySubset( |
|
132 | array('CC' => array('[email protected]', '[email protected]')), |
|
133 | $headers |
|
134 | ); |
|
135 | } |
|
136 | ||
137 | public function testAddCCWithTitle() |
|
138 | { |
|
@@ 163-175 (lines=13) @@ | ||
160 | ); |
|
161 | } |
|
162 | ||
163 | public function testAddBCCMultiple() |
|
164 | { |
|
165 | $archangel = new Archangel(); |
|
166 | $archangel->addBCC('[email protected]'); |
|
167 | $archangel->addBCC('[email protected]'); |
|
168 | $headersProperty = $this->getProtectedProperty('headers'); |
|
169 | $headers = $headersProperty->getValue($archangel); |
|
170 | ||
171 | $this->assertArraySubset( |
|
172 | array('BCC' => array('[email protected]', '[email protected]')), |
|
173 | $headers |
|
174 | ); |
|
175 | } |
|
176 | ||
177 | public function testAddBCCWithTitle() |
|
178 | { |
|
@@ 200-210 (lines=11) @@ | ||
197 | $this->assertArraySubset(array('From' => '[email protected]'), $headers); |
|
198 | } |
|
199 | ||
200 | public function testSetFromMultiple() |
|
201 | { |
|
202 | $archangel = new Archangel(); |
|
203 | $archangel->setFrom('[email protected]'); |
|
204 | $archangel->setFrom('[email protected]'); |
|
205 | $headersProperty = $this->getProtectedProperty('headers'); |
|
206 | $headers = $headersProperty->getValue($archangel); |
|
207 | ||
208 | $this->assertArraySubset(array('From' => '[email protected]'), $headers); |
|
209 | $this->assertNotContains('[email protected]', $headers); |
|
210 | } |
|
211 | ||
212 | public function testSetFromWithTitle() |
|
213 | { |
|
@@ 232-242 (lines=11) @@ | ||
229 | $this->assertArraySubset(array('Reply-To' => '[email protected]'), $headers); |
|
230 | } |
|
231 | ||
232 | public function testSetReplyToMultiple() |
|
233 | { |
|
234 | $archangel = new Archangel(); |
|
235 | $archangel->setReplyTo('[email protected]'); |
|
236 | $archangel->setReplyTo('[email protected]'); |
|
237 | $headersProperty = $this->getProtectedProperty('headers'); |
|
238 | $headers = $headersProperty->getValue($archangel); |
|
239 | ||
240 | $this->assertArraySubset(array('Reply-To' => '[email protected]'), $headers); |
|
241 | $this->assertNotContains('[email protected]', $headers); |
|
242 | } |
|
243 | ||
244 | public function testSetReplyToWithTitle() |
|
245 | { |