Code Duplication    Length = 8-8 lines in 2 locations

tests/ArchangelTest.php 2 locations

@@ 136-143 (lines=8) @@
133
        $this->assertAttributeContains('"Mr. Test Alot" <[email protected]>', 'bccAddresses', $archangel);
134
    }
135
136
    public function testSetFrom()
137
    {
138
        $archangel = new Archangel();
139
        $archangel->setFrom('[email protected]');
140
        $setHeaders = $this->getProtectedProperty($archangel, 'headers');
141
142
        $this->assertArraySubset(array('From' => '[email protected]'), $setHeaders);
143
    }
144
145
    public function testSetFromMultiple()
146
    {
@@ 156-163 (lines=8) @@
153
        $this->assertNotContains('[email protected]', $setHeaders);
154
    }
155
156
    public function testSetFromWithTitle()
157
    {
158
        $archangel = new Archangel();
159
        $archangel->setFrom('[email protected]', 'Mr. Test Alot');
160
        $setHeaders = $this->getProtectedProperty($archangel, 'headers');
161
162
        $this->assertArraySubset(array('From' => '"Mr. Test Alot" <[email protected]>'), $setHeaders);
163
    }
164
165
    protected function getProtectedProperty($archangel, $property)
166
    {