Code Duplication    Length = 9-9 lines in 4 locations

tests/ArchangelTest.php 4 locations

@@ 136-144 (lines=9) @@
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
        $headersProperty = $this->getProtectedProperty('headers');
141
        $headers = $headersProperty->getValue($archangel);
142
143
        $this->assertArraySubset(array('From' => '[email protected]'), $headers);
144
    }
145
146
    public function testSetFromMultiple()
147
    {
@@ 158-166 (lines=9) @@
155
        $this->assertNotContains('[email protected]', $headers);
156
    }
157
158
    public function testSetFromWithTitle()
159
    {
160
        $archangel = new Archangel();
161
        $archangel->setFrom('[email protected]', 'Mr. Test Alot');
162
        $headersProperty = $this->getProtectedProperty('headers');
163
        $headers = $headersProperty->getValue($archangel);
164
165
        $this->assertArraySubset(array('From' => '"Mr. Test Alot" <[email protected]>'), $headers);
166
    }
167
168
    public function testSetReplyTo()
169
    {
@@ 168-176 (lines=9) @@
165
        $this->assertArraySubset(array('From' => '"Mr. Test Alot" <[email protected]>'), $headers);
166
    }
167
168
    public function testSetReplyTo()
169
    {
170
        $archangel = new Archangel();
171
        $archangel->setReplyTo('[email protected]');
172
        $headersProperty = $this->getProtectedProperty('headers');
173
        $headers = $headersProperty->getValue($archangel);
174
175
        $this->assertArraySubset(array('Reply-To' => '[email protected]'), $headers);
176
    }
177
178
    public function testSetReplyToMultiple()
179
    {
@@ 190-198 (lines=9) @@
187
        $this->assertNotContains('[email protected]', $headers);
188
    }
189
190
    public function testSetReplyToWithTitle()
191
    {
192
        $archangel = new Archangel();
193
        $archangel->setReplyTo('[email protected]', 'Mr. Test Alot');
194
        $headersProperty = $this->getProtectedProperty('headers');
195
        $headers = $headersProperty->getValue($archangel);
196
197
        $this->assertArraySubset(array('Reply-To' => '"Mr. Test Alot" <[email protected]>'), $headers);
198
    }
199
200
    public function testFormatEmailAddress()
201
    {