Code Duplication    Length = 10-10 lines in 2 locations

eZ/Publish/Core/IO/Tests/IOMetadataHandler/FlysystemTest.php 2 locations

@@ 131-140 (lines=10) @@
128
        $this->handler->load('prefix/my/file.png');
129
    }
130
131
    public function testExists()
132
    {
133
        $this->filesystem
134
            ->expects($this->once())
135
            ->method('has')
136
            ->with('prefix/my/file.png')
137
            ->will($this->returnValue(true));
138
139
        self::assertTrue($this->handler->exists('prefix/my/file.png'));
140
    }
141
142
    public function testExistsNot()
143
    {
@@ 142-151 (lines=10) @@
139
        self::assertTrue($this->handler->exists('prefix/my/file.png'));
140
    }
141
142
    public function testExistsNot()
143
    {
144
        $this->filesystem
145
            ->expects($this->once())
146
            ->method('has')
147
            ->with('prefix/my/file.png')
148
            ->will($this->returnValue(false));
149
150
        self::assertFalse($this->handler->exists('prefix/my/file.png'));
151
    }
152
153
    public function testGetMimeType()
154
    {