From 16d1f2a37bad6272790f03bb1e315ea21897e9f1 Mon Sep 17 00:00:00 2001 From: Martin Zurowietz Date: Fri, 19 Jan 2024 10:44:49 +0100 Subject: [PATCH] Add test case for points with gap validation behavior --- tests/php/VideoAnnotationTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/php/VideoAnnotationTest.php b/tests/php/VideoAnnotationTest.php index 2c2aac66e..d2339cb3a 100644 --- a/tests/php/VideoAnnotationTest.php +++ b/tests/php/VideoAnnotationTest.php @@ -49,6 +49,14 @@ public function testValidatePointsFramesMismatch() $this->model->validatePoints(); } + public function testValidatePointsWithGap() + { + $this->expectNotToPerformAssertions(); + $this->model->points = [[10, 10], [], [20, 20]]; + $this->model->frames = [0.0, null, 1.0]; + $this->model->validatePoints(); + } + public function testValidatePointsPoint() { $this->model->shape_id = Shape::pointId();