PHP Class Captioning\Format\WebvttFileTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: captioning/captioning

Public Methods

Method Description
parseExceptionProvider ( ) : array
parseProvider ( ) : array
testAddingCuesBothWays ( )
testIfAFileIsParsedProperly ( )
testIfWeGetTheFirstCue ( )
testIfWeGetTheLastCue ( )
testParse ( string $vtt )
testParseException ( string $vtt, array $errors )
testRegions ( )
testRegionsEmpty ( )

Protected Methods

Method Description
setUp ( )

Private Methods

Method Description
getWebvttFile ( string $filename, string $encoding = null, boolean $useIconv = false ) : WebvttFile

Method Details

parseExceptionProvider() public method

public parseExceptionProvider ( ) : array
return array

parseProvider() public method

public parseProvider ( ) : array
return array

setUp() protected method

protected setUp ( )

testAddingCuesBothWays() public method

testIfAFileIsParsedProperly() public method

testIfWeGetTheFirstCue() public method

testIfWeGetTheLastCue() public method

testParse() public method

public testParse ( string $vtt )
$vtt string

testParseException() public method

public testParseException ( string $vtt, array $errors )
$vtt string
$errors array

testRegions() public method

public testRegions ( )

testRegionsEmpty() public method

public testRegionsEmpty ( )