Code Duplication    Length = 6-7 lines in 2 locations

Tests/Cache/CachePrivateTest.php 2 locations

@@ 39-44 (lines=6) @@
36
    /**
37
     * Test that array has keys.
38
     */
39
    public function testArrayHasKeys(){
40
        $data = ['a' => 'foo', 'b' => 'bar'];
41
        $method = $this->getCacheMethod('_hasKeys');
42
        $actual = $method->invokeArgs($this->cache, [$data]);
43
        $this->assertEquals(true, $actual);
44
    }
45
46
    /**
47
     * Test exception thrown when array is missing keys.
@@ 81-87 (lines=7) @@
78
    /**
79
     * Test that array is Traversable
80
     */
81
    public function testIsTraversable(){
82
        $data = ['a','b','c','d'];
83
        $method = $this->getCacheMethod('_isTraversable');
84
        $actual = $method->invokeArgs($this->cache, [$data]);
85
        $expected = true;
86
        $this->assertEquals($expected, $actual);
87
    }
88
89
    /**
90
     * Test that string is not Traversable