@@ -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'); |