Captioning\Format\JsonFileTest::testIfAFileIsParsedProperly PHP Метод

testIfAFileIsParsedProperly() публичный Метод

    public function testIfAFileIsParsedProperly()
    {
        $filename = __DIR__ . '/../../Fixtures/Json/en.json';
        $file = new JsonFile($filename);
        // cues
        $this->assertEquals(523, $file->getCuesCount());
        $this->assertEquals(7000, $file->getCue(2)->getStart());
        $this->assertEquals(8000, $file->getCue(2)->getStop());
        $this->assertEquals(1000, $file->getCue(2)->getDuration());
        $this->assertEquals("And the answer I like to offer is", $file->getCue(2)->getText());
    }