Code Duplication    Length = 10-10 lines in 2 locations

tests/ArchangelTest.php 2 locations

@@ 590-599 (lines=10) @@
587
       );
588
    }
589
590
    public function testBuildTo()
591
    {
592
        $archangel = new Archangel();
593
        $addressesProperty = $this->getProtectedProperty('toAddresses');
594
        $addressesProperty->setValue($archangel, array('[email protected]'));
595
        $buildMethod = $this->getProtectedMethod('buildTo');
596
        $toAddresses = $buildMethod->invoke($archangel);
597
598
        $this->assertEquals('[email protected]', $toAddresses);
599
    }
600
601
    public function testBuildToMultiple()
602
    {
@@ 601-610 (lines=10) @@
598
        $this->assertEquals('[email protected]', $toAddresses);
599
    }
600
601
    public function testBuildToMultiple()
602
    {
603
        $archangel = new Archangel();
604
        $addressesProperty = $this->getProtectedProperty('toAddresses');
605
        $addressesProperty->setValue($archangel, array('[email protected]', '[email protected]'));
606
        $buildMethod = $this->getProtectedMethod('buildTo');
607
        $toAddresses = $buildMethod->invoke($archangel);
608
609
        $this->assertEquals('[email protected], [email protected]', $toAddresses);
610
    }
611
612
    protected function getProtectedProperty($property)
613
    {