Code Duplication    Length = 11-13 lines in 4 locations

tests/ArchangelTest.php 4 locations

@@ 107-119 (lines=13) @@
104
        );
105
    }
106
107
    public function testAddCCMultiple()
108
    {
109
        $archangel = new Archangel();
110
        $archangel->addCC('[email protected]');
111
        $archangel->addCC('[email protected]');
112
        $headersProperty = $this->getProtectedProperty('headers');
113
        $headers = $headersProperty->getValue($archangel);
114
115
        $this->assertArraySubset(
116
            array('CC' => array('[email protected]', '[email protected]')),
117
            $headers
118
        );
119
    }
120
121
    public function testAddCCWithTitle()
122
    {
@@ 147-159 (lines=13) @@
144
        );
145
    }
146
147
    public function testAddBCCMultiple()
148
    {
149
        $archangel = new Archangel();
150
        $archangel->addBCC('[email protected]');
151
        $archangel->addBCC('[email protected]');
152
        $headersProperty = $this->getProtectedProperty('headers');
153
        $headers = $headersProperty->getValue($archangel);
154
155
        $this->assertArraySubset(
156
            array('BCC' => array('[email protected]', '[email protected]')),
157
            $headers
158
        );
159
    }
160
161
    public function testAddBCCWithTitle()
162
    {
@@ 184-194 (lines=11) @@
181
        $this->assertArraySubset(array('From' => '[email protected]'), $headers);
182
    }
183
184
    public function testSetFromMultiple()
185
    {
186
        $archangel = new Archangel();
187
        $archangel->setFrom('[email protected]');
188
        $archangel->setFrom('[email protected]');
189
        $headersProperty = $this->getProtectedProperty('headers');
190
        $headers = $headersProperty->getValue($archangel);
191
192
        $this->assertArraySubset(array('From' => '[email protected]'), $headers);
193
        $this->assertNotContains('[email protected]', $headers);
194
    }
195
196
    public function testSetFromWithTitle()
197
    {
@@ 216-226 (lines=11) @@
213
        $this->assertArraySubset(array('Reply-To' => '[email protected]'), $headers);
214
    }
215
216
    public function testSetReplyToMultiple()
217
    {
218
        $archangel = new Archangel();
219
        $archangel->setReplyTo('[email protected]');
220
        $archangel->setReplyTo('[email protected]');
221
        $headersProperty = $this->getProtectedProperty('headers');
222
        $headers = $headersProperty->getValue($archangel);
223
224
        $this->assertArraySubset(array('Reply-To' => '[email protected]'), $headers);
225
        $this->assertNotContains('[email protected]', $headers);
226
    }
227
228
    public function testSetReplyToWithTitle()
229
    {