Code Duplication    Length = 12-14 lines in 2 locations

tests/unit/ConsoleTest.php 2 locations

@@ 12-25 (lines=14) @@
9
    {
10
    }
11
12
    public function testLog()
13
    {
14
        $data = array(
15
            'key' => 'value'
16
        );
17
18
        $console = new Console();
19
        $console->log($data);
20
        $store = $this->getProtectedStore($console);
21
        $log = array_pop($store);
22
23
        $this->assertSame($data, $log['data']);
24
        $this->assertEquals('log', $log['type']);
25
    }
26
27
    public function testLogMemory()
28
    {
@@ 71-82 (lines=12) @@
68
        $this->assertEquals($message, $log['data']);
69
    }
70
71
    public function testLogSpeed()
72
    {
73
        $name = 'Test Speed';
74
75
        $console = new Console();
76
        $console->logSpeed($name);
77
        $store = $this->getProtectedStore($console);
78
        $log = array_pop($store);
79
80
        $this->assertEquals($name, $log['name']);
81
        $this->assertEquals('speed', $log['type']);
82
    }
83
84
    public function testGetLogs()
85
    {