Skip to content

Commit e01f7c1

Browse files
committed
Update image annotation tests
1 parent 0987707 commit e01f7c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/php/ImageAnnotationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,23 +111,23 @@ public function testValidatePointsEllipse()
111111
public function testValidatePointsLine()
112112
{
113113
$this->model->shape_id = Shape::lineId();
114-
$this->model->validatePoints([10, 10]);
114+
$this->model->validatePoints([10, 10, 20, 20]);
115115
$this->expectException(Exception::class);
116116
$this->model->validatePoints([10]);
117117
}
118118

119119
public function testValidatePointsPolygon()
120120
{
121121
$this->model->shape_id = Shape::polygonId();
122-
$this->model->validatePoints([10, 10]);
122+
$this->model->validatePoints([10, 10, 20, 20, 30, 30, 10 ,10]);
123123
$this->expectException(Exception::class);
124-
$this->model->validatePoints([10]);
124+
$this->model->validatePoints([10, 10]);
125125
}
126126

127127
public function testValidatePointsPolygonFirstLastEqual()
128128
{
129129
$this->model->shape_id = Shape::polygonId();
130-
$this->model->validatePoints([10, 10, 20, 20, 10, 10]);
130+
$this->model->validatePoints([10, 10, 20, 20, 30, 30, 10, 10]);
131131
$this->expectException(Exception::class);
132132
$this->model->validatePoints([10, 10, 20, 20, 30, 30]);
133133
}

0 commit comments

Comments
 (0)