PHP Класс Alltube\Test\VideoDownloadTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
setUp ( ) Initialize properties used by test.
tearDown ( ) Destroy properties after test.

Описание методов

errorUrlProvider() публичный метод

Provides incorrect URLs for tests.
public errorUrlProvider ( ) : array[]
Результат array[]

setUp() защищенный метод

Initialize properties used by test.
protected setUp ( )

tearDown() защищенный метод

Destroy properties after test.
protected tearDown ( )

testConstructorWithMissingPython() публичный метод

Test VideoDownload constructor with wrong Python path.
public testConstructorWithMissingPython ( ) : void
Результат void

testConstructorWithMissingYoutubedl() публичный метод

Test VideoDownload constructor with wrong youtube-dl path.
public testConstructorWithMissingYoutubedl ( ) : void
Результат void

testGetAudioFilename() публичный метод

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
Результат void

testGetAudioStream() публичный метод

Test getAudioStream function.
public testGetAudioStream ( string $url, string $format ) : void
$url string URL
$format string Format
Результат void

testGetAudioStreamAvconvError() публичный метод

Test getAudioStream function without avconv.
public testGetAudioStreamAvconvError ( string $url, string $format ) : void
$url string URL
$format string Format
Результат void

testGetAudioStreamCurlError() публичный метод

Test getAudioStream function without curl or rtmpdump.
public testGetAudioStreamCurlError ( string $url, string $format ) : void
$url string URL
$format string Format
Результат void

testGetFilename() публичный метод

Test getFilename function.
public testGetFilename ( string $url, string $format, string $filename ) : void
$url string URL
$format string Format
$filename string Filename
Результат void

testGetFilenameError() публичный метод

Test getFilename function errors.
public testGetFilenameError ( string $url ) : void
$url string URL
Результат void

testGetJSON() публичный метод

Test getJSON function.
public testGetJSON ( string $url, string $format ) : void
$url string URL
$format string Format
Результат void

testGetJSONError() публичный метод

Test getJSON function errors.
public testGetJSONError ( string $url ) : void
$url string URL
Результат void

testGetURL() публичный метод

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
Результат void

testGetURLError() публичный метод

Test getURL function errors.
public testGetURLError ( string $url ) : void
$url string URL
Результат void

testListExtractors() публичный метод

Test listExtractors function.
public testListExtractors ( ) : void
Результат void

urlProvider() публичный метод

Provides URLs for tests.
public urlProvider ( ) : array[]
Результат array[]