video = new Video('https://www.youtube.com/watch?v=XJC9_JkzugE'); } /** * Remove stubs. * * @return void */ protected function tearDown() { Mockery::close(); } /** * Test getAudioStream function with a buggy popen. * * @return void * @expectedException Exception */ public function testGetAudioStreamWithPopenError() { $this->video->getAudioStream(); } /** * Test getM3uStream function with a buggy popen. * * @return void * @expectedException Exception */ public function testGetM3uStreamWithPopenError() { $this->video->getM3uStream(); } /** * Test getRtmpStream function with a buggy popen. * * @return void * @expectedException Exception */ public function testGetRtmpStreamWithPopenError() { $this->video->getRtmpStream(); } /** * Test getRemuxStream function with a buggy popen. * * @return void * @expectedException Exception */ public function testGetRemuxStreamWithPopenError() { $video = $this->video->withFormat('bestvideo+bestaudio'); $video->getRemuxStream(); } /** * Test getConvertedStream function with a buggy popen. * * @return void * @expectedException Exception */ public function testGetConvertedStreamWithPopenError() { $this->video->getConvertedStream(32, 'flv'); } }