|
@@ 221-228 (lines=8) @@
|
| 218 |
|
$this->assertEquals('<p>An HTML message.</p>', $setHTMLMessage); |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
public function testFormatEmailAddress() |
| 222 |
|
{ |
| 223 |
|
$archangel = new Archangel(); |
| 224 |
|
$formatMethod = $this->getProtectedMethod('formatEmailAddress'); |
| 225 |
|
$formattedEmail = $formatMethod->invokeArgs($archangel, array('[email protected]', '')); |
| 226 |
|
|
| 227 |
|
$this->assertEquals('[email protected]', $formattedEmail); |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
public function testFormatEmailAddressWithTitle() |
| 231 |
|
{ |
|
@@ 230-237 (lines=8) @@
|
| 227 |
|
$this->assertEquals('[email protected]', $formattedEmail); |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
public function testFormatEmailAddressWithTitle() |
| 231 |
|
{ |
| 232 |
|
$archangel = new Archangel(); |
| 233 |
|
$formatMethod = $this->getProtectedMethod('formatEmailAddress'); |
| 234 |
|
$formattedEmail = $formatMethod->invokeArgs($archangel, array('[email protected]', 'Mr. Test Alot')); |
| 235 |
|
|
| 236 |
|
$this->assertEquals('"Mr. Test Alot" <[email protected]>', $formattedEmail); |
| 237 |
|
} |
| 238 |
|
|
| 239 |
|
protected function getProtectedValue($archangel, $property) |
| 240 |
|
{ |