|
@@ 238-245 (lines=8) @@
|
| 235 |
|
$this->assertArraySubset(array('Reply-To' => '"Mr. Test Alot" <[email protected]>'), $headers); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
public function testFormatEmailAddress() |
| 239 |
|
{ |
| 240 |
|
$archangel = new Archangel(); |
| 241 |
|
$formatMethod = $this->getProtectedMethod('formatEmailAddress'); |
| 242 |
|
$formattedEmail = $formatMethod->invokeArgs($archangel, array('[email protected]', '')); |
| 243 |
|
|
| 244 |
|
$this->assertEquals('[email protected]', $formattedEmail); |
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
public function testFormatEmailAddressWithTitle() |
| 248 |
|
{ |
|
@@ 247-254 (lines=8) @@
|
| 244 |
|
$this->assertEquals('[email protected]', $formattedEmail); |
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
public function testFormatEmailAddressWithTitle() |
| 248 |
|
{ |
| 249 |
|
$archangel = new Archangel(); |
| 250 |
|
$formatMethod = $this->getProtectedMethod('formatEmailAddress'); |
| 251 |
|
$formattedEmail = $formatMethod->invokeArgs($archangel, array('[email protected]', 'Mr. Test Alot')); |
| 252 |
|
|
| 253 |
|
$this->assertEquals('"Mr. Test Alot" <[email protected]>', $formattedEmail); |
| 254 |
|
} |
| 255 |
|
|
| 256 |
|
public function testSetSubject() |
| 257 |
|
{ |