Code Duplication    Length = 11-11 lines in 2 locations

Tests/Helper/SwiftMailerReporterTest.php 2 locations

@@ 24-34 (lines=11) @@
21
    /**
22
     * @dataProvider sendNoEmailProvider
23
     */
24
    public function testSendNoEmail(ResultInterface $result, $sendOnWarning)
25
    {
26
        $mailer = $this->prophesize('Swift_Mailer');
27
        $mailer->send()->shouldNotBeCalled();
28
29
        $results = new Collection();
30
        $results[$this->prophesize(CheckInterface::class)->reveal()] = $result;
31
32
        $reporter = new SwiftMailerReporter($mailer->reveal(), '[email protected]', '[email protected]', 'foo bar', $sendOnWarning);
33
        $reporter->onFinish($results);
34
    }
35
36
    /**
37
     * @dataProvider sendEmailProvider
@@ 39-49 (lines=11) @@
36
    /**
37
     * @dataProvider sendEmailProvider
38
     */
39
    public function testSendEmail(ResultInterface $result, $sendOnWarning)
40
    {
41
        $mailer = $this->prophesize('Swift_Mailer');
42
        $mailer->send(Argument::type('Swift_Message'))->shouldBeCalled();
43
44
        $results = new Collection();
45
        $results[$this->prophesize(CheckInterface::class)->reveal()] = $result;
46
47
        $reporter = new SwiftMailerReporter($mailer->reveal(), '[email protected]', '[email protected]', 'foo bar', $sendOnWarning);
48
        $reporter->onFinish($results);
49
    }
50
51
    public function sendEmailProvider()
52
    {