|
@@ 109-121 (lines=13) @@
|
| 106 |
|
); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
public function testAddCCMultiple() |
| 110 |
|
{ |
| 111 |
|
$archangel = new Archangel(); |
| 112 |
|
$archangel->addCC('[email protected]'); |
| 113 |
|
$archangel->addCC('[email protected]'); |
| 114 |
|
$headersProperty = $this->getProtectedProperty('headers'); |
| 115 |
|
$headers = $headersProperty->getValue($archangel); |
| 116 |
|
|
| 117 |
|
$this->assertArraySubset( |
| 118 |
|
array('CC' => array('[email protected]', '[email protected]')), |
| 119 |
|
$headers |
| 120 |
|
); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
public function testAddCCWithTitle() |
| 124 |
|
{ |
|
@@ 149-161 (lines=13) @@
|
| 146 |
|
); |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
public function testAddBCCMultiple() |
| 150 |
|
{ |
| 151 |
|
$archangel = new Archangel(); |
| 152 |
|
$archangel->addBCC('[email protected]'); |
| 153 |
|
$archangel->addBCC('[email protected]'); |
| 154 |
|
$headersProperty = $this->getProtectedProperty('headers'); |
| 155 |
|
$headers = $headersProperty->getValue($archangel); |
| 156 |
|
|
| 157 |
|
$this->assertArraySubset( |
| 158 |
|
array('BCC' => array('[email protected]', '[email protected]')), |
| 159 |
|
$headers |
| 160 |
|
); |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
public function testAddBCCWithTitle() |
| 164 |
|
{ |
|
@@ 186-196 (lines=11) @@
|
| 183 |
|
$this->assertArraySubset(array('From' => '[email protected]'), $headers); |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
public function testSetFromMultiple() |
| 187 |
|
{ |
| 188 |
|
$archangel = new Archangel(); |
| 189 |
|
$archangel->setFrom('[email protected]'); |
| 190 |
|
$archangel->setFrom('[email protected]'); |
| 191 |
|
$headersProperty = $this->getProtectedProperty('headers'); |
| 192 |
|
$headers = $headersProperty->getValue($archangel); |
| 193 |
|
|
| 194 |
|
$this->assertArraySubset(array('From' => '[email protected]'), $headers); |
| 195 |
|
$this->assertNotContains('[email protected]', $headers); |
| 196 |
|
} |
| 197 |
|
|
| 198 |
|
public function testSetFromWithTitle() |
| 199 |
|
{ |
|
@@ 218-228 (lines=11) @@
|
| 215 |
|
$this->assertArraySubset(array('Reply-To' => '[email protected]'), $headers); |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
public function testSetReplyToMultiple() |
| 219 |
|
{ |
| 220 |
|
$archangel = new Archangel(); |
| 221 |
|
$archangel->setReplyTo('[email protected]'); |
| 222 |
|
$archangel->setReplyTo('[email protected]'); |
| 223 |
|
$headersProperty = $this->getProtectedProperty('headers'); |
| 224 |
|
$headers = $headersProperty->getValue($archangel); |
| 225 |
|
|
| 226 |
|
$this->assertArraySubset(array('Reply-To' => '[email protected]'), $headers); |
| 227 |
|
$this->assertNotContains('[email protected]', $headers); |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
public function testSetReplyToWithTitle() |
| 231 |
|
{ |