From 7b7725f130d037d3f438ded4cbadf386f98adba5 Mon Sep 17 00:00:00 2001 From: Mantas Date: Mon, 12 Feb 2024 08:13:40 +0200 Subject: [PATCH] Update unit tests according to Adobe Premiere --- tests/formats/SccTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/formats/SccTest.php b/tests/formats/SccTest.php index 31121ae..ba7eb05 100644 --- a/tests/formats/SccTest.php +++ b/tests/formats/SccTest.php @@ -204,14 +204,14 @@ public function testConvertsDropFrameTimeWithText() public function testInternalTimeToScc() { - $actual = SccConverter::internalTimeToScc(3600, 0, 29.97, false); - $this->assertEquals('01:00:00;01', $actual, 0.001); + $actual = SccConverter::internalTimeToScc(1, 20, 29.97, false); + $this->assertEquals('00:00:00;21', $actual, 0.001); } public function testInternalTimeToSccTimeWithText() { - $actual = SccConverter::internalTimeToScc(3600, 30, 29.97, false); - $this->assertEquals('00:59:59;16', $actual, 0.001); + $actual = SccConverter::internalTimeToScc(2, 2, 29.97, false); + $this->assertEquals('00:00:02;00', $actual, 0.001); } public function testSpaceBetweenBlocks()