Code Duplication    Length = 14-14 lines in 2 locations

tests/ArchangelTest.php 2 locations

@@ 515-528 (lines=14) @@
512
        $this->assertEmpty($builtMessage);
513
    }
514
515
    public function testBuildMessagePlain()
516
    {
517
        $message = 'Plain text message';
518
519
        $archangel = new Archangel();
520
        $plainMessageProperty = $this->getProtectedProperty('plainMessage');
521
        $plainMessageProperty->setValue($archangel, $message);
522
        $htmlMessageProperty = $this->getProtectedProperty('htmlMessage');
523
        $htmlMessageProperty->setValue($archangel, '');
524
        $buildMethod = $this->getProtectedMethod('buildMessage');
525
        $builtMessage = $buildMethod->invoke($archangel);
526
527
        $this->assertEquals($message, $builtMessage);
528
    }
529
530
    public function testBuildMessageHtml()
531
    {
@@ 530-543 (lines=14) @@
527
        $this->assertEquals($message, $builtMessage);
528
    }
529
530
    public function testBuildMessageHtml()
531
    {
532
        $message = '<p>HTML Message.</p>';
533
534
        $archangel = new Archangel();
535
        $plainMessageProperty = $this->getProtectedProperty('plainMessage');
536
        $plainMessageProperty->setValue($archangel, '');
537
        $htmlMessageProperty = $this->getProtectedProperty('htmlMessage');
538
        $htmlMessageProperty->setValue($archangel, $message);
539
        $buildMethod = $this->getProtectedMethod('buildMessage');
540
        $builtMessage = $buildMethod->invoke($archangel);
541
542
        $this->assertEquals($message, $builtMessage);
543
    }
544
545
    public function testBuildMessageMultipart()
546
    {