Code Duplication    Length = 14-14 lines in 2 locations

eZ/Bundle/EzPublishIOBundle/Tests/EventListener/StreamFileListenerTest.php 2 locations

@@ 42-55 (lines=14) @@
39
        $this->eventListener = new StreamFileListener($this->ioServiceMock, $this->configResolverMock);
40
    }
41
42
    public function testDoesNotRespondToNonIoUri()
43
    {
44
        $request = $this->createRequest('/Not-an-image');
45
        $event = $this->createEvent($request);
46
47
        $this->configureIoUrlPrefix('var/test/storage');
48
        $this->ioServiceMock
49
            ->expects($this->never())
50
            ->method('loadBinaryFileByUri');
51
52
        $this->eventListener->onKernelRequest($event);
53
54
        self::assertNull($event->getResponse());
55
    }
56
57
    public function testDoesNotRespondToNoIoRequest()
58
    {
@@ 57-70 (lines=14) @@
54
        self::assertNull($event->getResponse());
55
    }
56
57
    public function testDoesNotRespondToNoIoRequest()
58
    {
59
        $request = $this->createRequest('/Not-an-image', 'bar.fr');
60
        $event = $this->createEvent($request);
61
62
        $this->configureIoUrlPrefix('http://foo.com/var/test/storage');
63
        $this->ioServiceMock
64
            ->expects($this->never())
65
            ->method('loadBinaryFileByUri');
66
67
        $this->eventListener->onKernelRequest($event);
68
69
        self::assertNull($event->getResponse());
70
    }
71
72
    public function testRespondsToIoUri()
73
    {