Code Duplication    Length = 16-17 lines in 2 locations

Tests/Cache/CacheTest.php 1 location

@@ 36-52 (lines=17) @@
33
        $this->cache->has($key);
34
    }
35
36
    public function testSet()
37
    {
38
39
        $key = 'key';
40
        $value = 'value';
41
        $expires = 10;
42
43
        $this->storageMock->expects($this->once())
44
            ->method('set')
45
            ->with(
46
                $this->equalTo($key),
47
                $this->equalTo($value),
48
                $this->equalTo($expires)
49
            );
50
51
        $this->cache->set($key, $value, $expires);
52
    }
53
54
    public function testGet()
55
    {

Tests/Cache/MemcacheStorageTest.php 1 location

@@ 71-86 (lines=16) @@
68
        $this->memcacheStorage->has($key);
69
    }
70
71
    public function testSet()
72
    {
73
        $key = 'key';
74
        $value = 'value';
75
        $expires = 10;
76
77
        $this->memcacheMock->expects($this->once())
78
            ->method('set')
79
            ->with(
80
                $this->equalTo($key),
81
                $this->equalTo($value),
82
                $this->equalTo($expires)
83
            );
84
85
        $this->memcacheStorage->set($key, $value, $expires);
86
    }
87
88
89
    public function testGet()