Code Duplication    Length = 8-8 lines in 2 locations

tests/ArchangelTest.php 2 locations

@@ 200-207 (lines=8) @@
197
        $this->assertArraySubset(array('Reply-To' => '"Mr. Test Alot" <[email protected]>'), $headers);
198
    }
199
200
    public function testFormatEmailAddress()
201
    {
202
        $archangel = new Archangel();
203
        $formatMethod = $this->getProtectedMethod('formatEmailAddress');
204
        $formattedEmail = $formatMethod->invokeArgs($archangel, array('[email protected]', ''));
205
206
        $this->assertEquals('[email protected]', $formattedEmail);
207
    }
208
209
    public function testFormatEmailAddressWithTitle()
210
    {
@@ 209-216 (lines=8) @@
206
        $this->assertEquals('[email protected]', $formattedEmail);
207
    }
208
209
    public function testFormatEmailAddressWithTitle()
210
    {
211
        $archangel = new Archangel();
212
        $formatMethod = $this->getProtectedMethod('formatEmailAddress');
213
        $formattedEmail = $formatMethod->invokeArgs($archangel, array('[email protected]', 'Mr. Test Alot'));
214
215
        $this->assertEquals('"Mr. Test Alot" <[email protected]>', $formattedEmail);
216
    }
217
218
    public function testSetSubject()
219
    {