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();