/** * factory method to create default VideoPreviewImageExtractor * @return VideoPreviewImageExtractor */ public static function create() { $vimeoExtractor = VimeoExtractor::create(); $youtubeExtractor = YoutubeExtractor::create(); $dailymotionExtractor = DailymotionExtractor::create(); return new self([$vimeoExtractor, $youtubeExtractor, $dailymotionExtractor], $filter = []); }
public function testCreate() { $extractor = YoutubeExtractor::create(); $this->assertInstanceOf('Ivoba\\VideoPreviewImageExtractor\\Extractor\\YoutubeExtractor', $extractor); }