Code Duplication    Length = 16-17 lines in 2 locations

Tests/Cache/CacheTest.php 1 location

@@ 66-82 (lines=17) @@
63
    /**
64
     * Test that CacheStorageInterface::set() is called
65
     */
66
    public function testSet()
67
    {
68
69
        $key = 'key';
70
        $value = 'value';
71
        $expires = 10;
72
        $this->storageMock->expects($this->once())
73
            ->method('set')
74
            ->with(
75
                $this->equalTo($key),
76
                $this->equalTo($value),
77
                $this->equalTo($expires)
78
            );
79
        $this->cache->set($key, $value, $expires);
80
    }
81
82
    /**
83
     * Test that CacheStorageInterface::get() is called
84
     */
85
    public function testGet()

Tests/Cache/MemcacheStorageTest.php 1 location

@@ 87-102 (lines=16) @@
84
        );
85
    }
86
87
    public function testSet()
88
    {
89
        $key = 'key';
90
        $value = 'value';
91
        $expires = 10;
92
93
        $this->memcacheMock->expects($this->once())
94
            ->method('set')
95
            ->with(
96
                $this->equalTo($key),
97
                $this->equalTo($value),
98
                $this->equalTo($expires)
99
            );
100
101
        $this->memcacheStorage->set($key, $value, $expires);
102
    }
103
104
105
    public function testGet()