Code Duplication    Length = 11-11 lines in 2 locations

Tests/Unit/Handler/RavenTest.php 2 locations

@@ 36-46 (lines=11) @@
33
        return new MockRavenClient($dsn);
34
    }
35
36
    public function testDebug()
37
    {
38
        $ravenClient = $this->getRavenClient();
39
        $handler = $this->getHandler($ravenClient);
40
41
        $record = $this->getRecord(Logger::DEBUG, 'A test debug message');
42
        $handler->handle($record);
43
44
        $this->assertEquals($ravenClient::DEBUG, $ravenClient->lastData['level']);
45
        $this->assertContains($record['message'], $ravenClient->lastData['message']);
46
    }
47
48
    protected function getHandler($ravenClient)
49
    {
@@ 78-88 (lines=11) @@
75
        ];
76
    }
77
78
    public function testWarning()
79
    {
80
        $ravenClient = $this->getRavenClient();
81
        $handler = $this->getHandler($ravenClient);
82
83
        $record = $this->getRecord(Logger::WARNING, 'A test warning message');
84
        $handler->handle($record);
85
86
        $this->assertEquals($ravenClient::WARNING, $ravenClient->lastData['level']);
87
        $this->assertContains($record['message'], $ravenClient->lastData['message']);
88
    }
89
90
    public function testTag()
91
    {