Code Duplication    Length = 10-10 lines in 3 locations

Tests/CacheTest.php 3 locations

@@ 51-60 (lines=10) @@
48
    /**
49
     * Test that CacheStorageInterface::has() is called
50
     */
51
    public function testHas()
52
    {
53
        $key = 'key';
54
        $this->storageMock->expects($this->once())
55
            ->method('has')
56
            ->with(
57
                $this->equalTo($key)
58
            );
59
        $this->cache->has($key);
60
    }
61
62
    /**
63
     * Test that CacheStorageInterface::set() is called
@@ 84-93 (lines=10) @@
81
    /**
82
     * Test that CacheStorageInterface::get() is called
83
     */
84
    public function testGet()
85
    {
86
        $key = 'key';
87
        $this->storageMock->expects($this->once())
88
            ->method('get')
89
            ->with(
90
                $this->equalTo($key)
91
            );
92
        $this->cache->get($key);
93
    }
94
95
    /**
96
     * Test that CacheStorageInterface::delete() is called
@@ 98-107 (lines=10) @@
95
    /**
96
     * Test that CacheStorageInterface::delete() is called
97
     */
98
    public function testDelete()
99
    {
100
        $key = 'key';
101
        $this->storageMock->expects($this->once())
102
            ->method('delete')
103
            ->with(
104
                $this->equalTo($key)
105
            );
106
        $this->cache->delete($key);
107
    }
108
109
    /**
110
     * Test that Cache::withCacheStorage() updates CacheStorageInterface adaptor.