Code Duplication    Length = 7-7 lines in 2 locations

Tests/PlaylistSchedulerTest.php 1 location

@@ 172-178 (lines=7) @@
169
        return $video;
170
    }
171
172
    private function prophesizeM3u8(ObjectProphecy $mediaSegment)
173
    {
174
        $m3u8 = $this->prophesize('Chrisyue\PhpM3u8\M3u8\M3u8');
175
        $m3u8->getPlaylist()->shouldBeCalledTimes(1)->willReturn(array($mediaSegment->reveal()));
176
177
        return $m3u8;
178
    }
179
}
180

Tests/EpgSchedulerTest.php 1 location

@@ 121-127 (lines=7) @@
118
        return $epgManager;
119
    }
120
121
    private function prophesizeVideoManager(ObjectProphecy $channel, array $videos = array())
122
    {
123
        $videoManager = $this->prophesize('Chrisyue\Mala\Manager\VideoManagerInterface');
124
        $videoManager->findByChannel($channel->reveal())->shouldBeCalledTimes(1)->willReturn($videos);
125
126
        return $videoManager;
127
    }
128
129
    private function prophesizeChannel()
130
    {