Code Duplication    Length = 11-11 lines in 2 locations

eZ/Bundle/EzPublishCoreBundle/Tests/Imagine/BinaryLoaderTest.php 2 locations

@@ 48-58 (lines=11) @@
45
    /**
46
     * @expectedException \Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException
47
     */
48
    public function testFindNotFound()
49
    {
50
        $path = 'something.jpg';
51
        $this->ioService
52
            ->expects($this->once())
53
            ->method('loadBinaryFile')
54
            ->with($path)
55
            ->will($this->throwException(new NotFoundException('foo', 'bar')));
56
57
        $this->binaryLoader->find($path);
58
    }
59
60
    /**
61
     * @expectedException \Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException
@@ 63-73 (lines=11) @@
60
    /**
61
     * @expectedException \Liip\ImagineBundle\Exception\Binary\Loader\NotLoadableException
62
     */
63
    public function testFindMissing()
64
    {
65
        $path = 'something.jpg';
66
        $this->ioService
67
            ->expects($this->once())
68
            ->method('loadBinaryFile')
69
            ->with($path)
70
            ->will($this->returnValue(new MissingBinaryFile()));
71
72
        $this->binaryLoader->find($path);
73
    }
74
75
    public function testFindBadPathRoot()
76
    {