PHP Class Alltube\Test\VideoDownloadTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: rudloff/alltube

Public Methods

Method Description
errorUrlProvider ( ) : array[] Provides incorrect URLs for tests.
testConstructorWithMissingPython ( ) : void Test VideoDownload constructor with wrong Python path.
testConstructorWithMissingYoutubedl ( ) : void Test VideoDownload constructor with wrong youtube-dl path.
testGetAudioFilename ( string $url, string $format, string $filename, string $domain, string $audioFilename ) : void Test getAudioFilename function.
testGetAudioStream ( string $url, string $format ) : void Test getAudioStream function.
testGetAudioStreamAvconvError ( string $url, string $format ) : void Test getAudioStream function without avconv.
testGetAudioStreamCurlError ( string $url, string $format ) : void Test getAudioStream function without curl or rtmpdump.
testGetFilename ( string $url, string $format, string $filename ) : void Test getFilename function.
testGetFilenameError ( string $url ) : void Test getFilename function errors.
testGetJSON ( string $url, string $format ) : void Test getJSON function.
testGetJSONError ( string $url ) : void Test getJSON function errors.
testGetURL ( string $url, string $format, string $filename, string $domain ) : void Test getURL function.
testGetURLError ( string $url ) : void Test getURL function errors.
testListExtractors ( ) : void Test listExtractors function.
urlProvider ( ) : array[] Provides URLs for tests.

Protected Methods

Method Description
setUp ( ) Initialize properties used by test.
tearDown ( ) Destroy properties after test.

Method Details

errorUrlProvider() public method

Provides incorrect URLs for tests.
public errorUrlProvider ( ) : array[]
return array[]

setUp() protected method

Initialize properties used by test.
protected setUp ( )

tearDown() protected method

Destroy properties after test.
protected tearDown ( )

testConstructorWithMissingPython() public method

Test VideoDownload constructor with wrong Python path.

testConstructorWithMissingYoutubedl() public method

Test VideoDownload constructor with wrong youtube-dl path.

testGetAudioFilename() public method

Test getAudioFilename function.
public testGetAudioFilename ( string $url, string $format, string $filename, string $domain, string $audioFilename ) : void
$url string URL
$format string Format
$filename string Filename
$domain string Domain
$audioFilename string MP3 audio file name
return void

testGetAudioStream() public method

Test getAudioStream function.
public testGetAudioStream ( string $url, string $format ) : void
$url string URL
$format string Format
return void

testGetAudioStreamAvconvError() public method

Test getAudioStream function without avconv.
public testGetAudioStreamAvconvError ( string $url, string $format ) : void
$url string URL
$format string Format
return void

testGetAudioStreamCurlError() public method

Test getAudioStream function without curl or rtmpdump.
public testGetAudioStreamCurlError ( string $url, string $format ) : void
$url string URL
$format string Format
return void

testGetFilename() public method

Test getFilename function.
public testGetFilename ( string $url, string $format, string $filename ) : void
$url string URL
$format string Format
$filename string Filename
return void

testGetFilenameError() public method

Test getFilename function errors.
public testGetFilenameError ( string $url ) : void
$url string URL
return void

testGetJSON() public method

Test getJSON function.
public testGetJSON ( string $url, string $format ) : void
$url string URL
$format string Format
return void

testGetJSONError() public method

Test getJSON function errors.
public testGetJSONError ( string $url ) : void
$url string URL
return void

testGetURL() public method

Test getURL function.
public testGetURL ( string $url, string $format, string $filename, string $domain ) : void
$url string URL
$format string Format
$filename string Filename
$domain string Domain
return void

testGetURLError() public method

Test getURL function errors.
public testGetURLError ( string $url ) : void
$url string URL
return void

testListExtractors() public method

Test listExtractors function.
public testListExtractors ( ) : void
return void

urlProvider() public method

Provides URLs for tests.
public urlProvider ( ) : array[]
return array[]