Skip to content

Commit 7b7725f

Browse files
committed
Update unit tests according to Adobe Premiere
1 parent 76e48e6 commit 7b7725f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/formats/SccTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,14 @@ public function testConvertsDropFrameTimeWithText()
204204

205205
public function testInternalTimeToScc()
206206
{
207-
$actual = SccConverter::internalTimeToScc(3600, 0, 29.97, false);
208-
$this->assertEquals('01:00:00;01', $actual, 0.001);
207+
$actual = SccConverter::internalTimeToScc(1, 20, 29.97, false);
208+
$this->assertEquals('00:00:00;21', $actual, 0.001);
209209
}
210210

211211
public function testInternalTimeToSccTimeWithText()
212212
{
213-
$actual = SccConverter::internalTimeToScc(3600, 30, 29.97, false);
214-
$this->assertEquals('00:59:59;16', $actual, 0.001);
213+
$actual = SccConverter::internalTimeToScc(2, 2, 29.97, false);
214+
$this->assertEquals('00:00:02;00', $actual, 0.001);
215215
}
216216

217217
public function testSpaceBetweenBlocks()

0 commit comments

Comments
 (0)