Code Duplication    Length = 7-7 lines in 2 locations

Tests/EpgSchedulerTest.php 1 location

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

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