Skip to content

Commit 0987707

Browse files
committed
Update video annotation tests
1 parent 99a7366 commit 0987707

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/php/VideoAnnotationTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testValidatePointsEllipse()
104104
public function testValidatePointsLine()
105105
{
106106
$this->model->shape_id = Shape::lineId();
107-
$this->model->points = [[10, 10]];
107+
$this->model->points = [[10, 10, 20, 20]];
108108
$this->model->frames = [0.0];
109109
$this->model->validatePoints();
110110
$this->expectException(Exception::class);
@@ -115,7 +115,7 @@ public function testValidatePointsLine()
115115
public function testValidatePointsPolygon()
116116
{
117117
$this->model->shape_id = Shape::polygonId();
118-
$this->model->points = [[10, 10]];
118+
$this->model->points = [[10, 10, 20, 20, 30, 30, 10, 10]];
119119
$this->model->frames = [0.0];
120120
$this->model->validatePoints();
121121
$this->expectException(Exception::class);
@@ -126,7 +126,7 @@ public function testValidatePointsPolygon()
126126
public function testValidatePointsPolygonFirstLastEqual()
127127
{
128128
$this->model->shape_id = Shape::polygonId();
129-
$this->model->points = [[10, 10, 20, 20, 10, 10]];
129+
$this->model->points = [[10, 10, 20, 20, 30, 30, 10, 10]];
130130
$this->model->frames = [0.0];
131131
$this->model->validatePoints();
132132
$this->expectException(Exception::class);

0 commit comments

Comments
 (0)