public function testIfAFileIsParsedProperly()
{
// example file from W3C spec
$filename = __DIR__ . '/../../Fixtures/example-1.vtt';
$file = new WebvttFile($filename);
// regions
$this->assertEquals(2, count($file->getRegions()));
$this->assertEquals('fred', $file->getRegion(0)->getId());
$this->assertEquals('40%', $file->getRegion(0)->getWidth());
$this->assertEquals(3, $file->getRegion(0)->getLines());
$this->assertEquals('0%,100%', $file->getRegion(0)->getRegionAnchor());
$this->assertEquals('10%,90%', $file->getRegion(0)->getViewportAnchor());
$this->assertEquals('up', $file->getRegion(0)->getScroll());
// cues
$this->assertEquals(6, $file->getCuesCount());
$this->assertEquals('00:00:07.500', $file->getCue(3)->getStart());
$this->assertEquals('00:00:27.500', $file->getCue(3)->getStop());
$this->assertEquals("<v Bill>Sure! I've only had one today.", $file->getCue(3)->getText());
}