class EmbedVideoSource code (5 results) /sprout/tests/embed_videoTest.php Highlighted file source
Line 14: use Sprout\Helpers\EmbedVideo; Line 23: $out = EmbedVideo::getVideoIdType('http://www.youtube.com/watch?v=YP31r70_QNM&feature=grec_index'); Line 24: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 27: $out = EmbedVideo::getVideoIdType('http://youtu.be/YP31r70_QNM'); Line 28: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 31: $out = EmbedVideo::getVideoIdType('https://youtu.be/YP31r70_QNM'); Line 32: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 35: $out = EmbedVideo::getVideoIdType('http://www.youtube.com/watch?v=c6jWWfQJt78&feature=grec_index'); Line 36: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 39: $out = EmbedVideo::getVideoIdType('http://www.youtube.com/watch?feature=grec_index&v=c6jWWfQJt78'); Line 40: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 43: $out = EmbedVideo::getVideoIdType('http://youtube.com/watch?v=c6jWWfQJt78'); Line 44: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 47: $out = EmbedVideo::getVideoIdType('http://youtube.com/watch?v=c6jWWfQJt78'); Line 48: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 51: $out = EmbedVideo::getVideoIdType('http://youtu.be/c6jWWfQJt78'); Line 52: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 55: $out = EmbedVideo::getVideoIdType('https://youtu.be/c6jWWfQJt78'); Line 56: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 59: $out = EmbedVideo::getVideoIdType('http://youtu.be/dK-Wy2NhO8o'); Line 60: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 63: $out = EmbedVideo::getVideoIdType('http://www.youtube.com/v/4_gMar4_Jhg?version=3&f=videos&app=youtube_gdata&rel=0'); Line 64: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 67: $out = EmbedVideo::getVideoIdType('https://www.youtube.com/v/4_gMar4_Jhg?version=3&f=videos&app=youtube_gdata&rel=0'); Line 68: $this->assertTrue($out[0] == EmbedVideo::TYPE_YOUTUBE); Line 71: $out = EmbedVideo::getVideoIdType('http://www.youtube.com/user/inyaka'); Line 74: $out = EmbedVideo::getVideoIdType('http://youtube.com/user/inyaka'); Line 79: $out = EmbedVideo::getVideoIdType('http://vimeo.com/6745866'); Line 80: $this->assertTrue($out[0] == EmbedVideo::TYPE_VIMEO); Line 83: $out = EmbedVideo::getVideoIdType('https://vimeo.com/6745866'); Line 84: $this->assertTrue($out[0] == EmbedVideo::TYPE_VIMEO); Line 87: $out = EmbedVideo::getVideoIdType('http://vimeo.com/'); Line 90: $out = EmbedVideo::getVideoIdType('http://vimeo.com/channels/staffpicks#13906628'); Line 95: $out = EmbedVideo::getVideoIdType('http://thejosh.info'); Line 98: $out = EmbedVideo::getVideoIdType('abcde'); Line 101: $out = EmbedVideo::getVideoIdType(array()); Line 109: $out = EmbedVideo::renderEmbed('http://www.youtube.com/watch?v=YP31r70_QNM&feature=grec_index'); Line 115: $out = EmbedVideo::renderEmbed('http://youtu.be/YP31r70_QNM'); Line 121: $out = EmbedVideo::renderEmbed('http://vimeo.com/6745866'); Line 127: $out = EmbedVideo::renderEmbed('https://vimeo.com/6745866'); Line 135: $out = EmbedVideo::renderEmbed('http://thejosh.info'); Line 138: $out = EmbedVideo::renderEmbed(array()); Line 143: $out = EmbedVideo::renderEmbed('http://youtu.be/YP31r70_QNM', 500, 1000); Line 151: $out = EmbedVideo::renderEmbed('https://vimeo.com/6745866', 500, 1000); Line 154: $out = EmbedVideo::renderEmbed('https://vimeo.com/6745866', 500, 1000, array()); Line 157: $out = EmbedVideo::renderEmbed('https://vimeo.com/6745866', 500, 1000, array('autoplay' => false)); Line 160: $out = EmbedVideo::renderEmbed('https://vimeo.com/6745866', 500, 1000, array('autoplay' => true)); Line 167: $out = EmbedVideo::renderEmbed('https://vimeo.com/6745866', 500, 1000); Line 170: $out = EmbedVideo::renderEmbed('https://vimeo.com/6745866', 500, 1000, array('title' => 'test')); Line 173: $out = EmbedVideo::renderEmbed('https://vimeo.com/6745866', 500, 1000, array('title' => null)); Line 176: $out = EmbedVideo::renderEmbed('https://vimeo.com/6745866', 500, 1000, array('title' => '')); Line 186: $out = EmbedVideo::getThumbFilename('http://www.youtube.com/watch?v=YP31r70_QNM&feature=grec_index'); Line 194: $out = EmbedVideo::getThumbFilename('http://youtu.be/YP31r70_QNM'); Line 202: $out = EmbedVideo::getThumbFilename('http://vimeo.com/6745866'); Line 210: $out = EmbedVideo::getThumbFilename('dsfsjfsfbnsfbshjfb');
A total of 65 lines in 5 files were found
|