@@ -98,6 +98,11 @@ discard block |
||
| 98 | 98 | $epgScheduler->schedule($channel->reveal(), $startsAt, $endsAt, true); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | + /** |
|
| 102 | + * @param integer $sequence |
|
| 103 | + * @param \DateTime $videoStartsAt |
|
| 104 | + * @param \DateTime $videoEndsAt |
|
| 105 | + */ |
|
| 101 | 106 | private function epgManagerShouldCreateProgram( |
| 102 | 107 | ObjectProphecy $epgManager, |
| 103 | 108 | ObjectProphecy $channel, |
@@ -134,6 +139,9 @@ discard block |
||
| 134 | 139 | return $this->prophesize('Chrisyue\Mala\Model\ChannelInterface'); |
| 135 | 140 | } |
| 136 | 141 | |
| 142 | + /** |
|
| 143 | + * @return null|ObjectProphecy |
|
| 144 | + */ |
|
| 137 | 145 | private function prophesizeProgram(\DateTime $endsAt) |
| 138 | 146 | { |
| 139 | 147 | $program = $this->prophesize('Chrisyue\Mala\Model\ProgramInterface'); |
@@ -142,6 +150,9 @@ discard block |
||
| 142 | 150 | return $program; |
| 143 | 151 | } |
| 144 | 152 | |
| 153 | + /** |
|
| 154 | + * @param integer $duration |
|
| 155 | + */ |
|
| 145 | 156 | private function prophesizeVideo($duration) |
| 146 | 157 | { |
| 147 | 158 | $video = $this->prophesize('Chrisyue\Mala\Model\VideoInterface'); |
@@ -42,6 +42,9 @@ discard block |
||
| 42 | 42 | $this->assertEquals($m3u8->getAge(), 1); // even if program will end at once, the age should be one second |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param integer $targetDuration |
|
| 47 | + */ |
|
| 45 | 48 | private function prophesizeMediaSegmentManager(\DateTime $startsAt, $targetDuration, array $segments) |
| 46 | 49 | { |
| 47 | 50 | $msManager = $this->prophesize('Chrisyue\Mala\Manager\MediaSegmentManagerInterface'); |
@@ -60,6 +63,9 @@ discard block |
||
| 60 | 63 | return $channel; |
| 61 | 64 | } |
| 62 | 65 | |
| 66 | + /** |
|
| 67 | + * @param integer $programSequence |
|
| 68 | + */ |
|
| 63 | 69 | private function prophesizeMediaSegment(\DateTime $endsAt, $programSequence) |
| 64 | 70 | { |
| 65 | 71 | $mediaSegment = $this->prophesize('Chrisyue\Mala\Model\ScheduledMediaSegment'); |