コード例 #1
0
ファイル: Captions.php プロジェクト: ske/captions-php
 public static function from_srt($content)
 {
     $parser = new SrtParser($content);
     return $parser->parse();
 }
コード例 #2
0
 public function test_parse()
 {
     $captions = $this->_simple_captions_set();
     $parser = new SrtParser($this->_srt_string());
     $this->assertSame($parser->parse()->render(), $captions->render());
 }