コード例 #1
0
 public function test_shift_srt()
 {
     $match = new Set();
     $match->renderer(new SrtRenderer());
     $caption = new Caption();
     $caption->text('Text One')->start(1.123)->end(31.228);
     $match->add_caption($caption);
     $caption = new Caption();
     $caption->text('Text Two')->start(31.123)->end(61.173);
     $match->add_caption($caption);
     $captions = $this->_simple_captions_set();
     $captions->fast_forward(1.123);
     $this->assertSame($captions->render(), $match->render());
 }