PHP Class Alltube\Test\VideoDownloadTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: rudloff/alltube

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
setUp ( ) Initialize properties used by test.
tearDown ( ) Destroy properties after test.

Method Details

errorUrlProvider() public méthode

Provides incorrect URLs for tests.
public errorUrlProvider ( ) : array[]
Résultat array[]

setUp() protected méthode

Initialize properties used by test.
protected setUp ( )

tearDown() protected méthode

Destroy properties after test.
protected tearDown ( )

testConstructorWithMissingPython() public méthode

Test VideoDownload constructor with wrong Python path.
public testConstructorWithMissingPython ( ) : void
Résultat void

testConstructorWithMissingYoutubedl() public méthode

Test VideoDownload constructor with wrong youtube-dl path.

testGetAudioFilename() public méthode

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
Résultat void

testGetAudioStream() public méthode

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

testGetAudioStreamAvconvError() public méthode

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

testGetAudioStreamCurlError() public méthode

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

testGetFilename() public méthode

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

testGetFilenameError() public méthode

Test getFilename function errors.
public testGetFilenameError ( string $url ) : void
$url string URL
Résultat void

testGetJSON() public méthode

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

testGetJSONError() public méthode

Test getJSON function errors.
public testGetJSONError ( string $url ) : void
$url string URL
Résultat void

testGetURL() public méthode

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
Résultat void

testGetURLError() public méthode

Test getURL function errors.
public testGetURLError ( string $url ) : void
$url string URL
Résultat void

testListExtractors() public méthode

Test listExtractors function.
public testListExtractors ( ) : void
Résultat void

urlProvider() public méthode

Provides URLs for tests.
public urlProvider ( ) : array[]
Résultat array[]