@@ -104,7 +104,7 @@ public function testValidatePointsEllipse()
104
104
public function testValidatePointsLine ()
105
105
{
106
106
$ this ->model ->shape_id = Shape::lineId ();
107
- $ this ->model ->points = [[10 , 10 ]];
107
+ $ this ->model ->points = [[10 , 10 , 20 , 20 ]];
108
108
$ this ->model ->frames = [0.0 ];
109
109
$ this ->model ->validatePoints ();
110
110
$ this ->expectException (Exception::class);
@@ -115,7 +115,7 @@ public function testValidatePointsLine()
115
115
public function testValidatePointsPolygon ()
116
116
{
117
117
$ this ->model ->shape_id = Shape::polygonId ();
118
- $ this ->model ->points = [[10 , 10 ]];
118
+ $ this ->model ->points = [[10 , 10 , 20 , 20 , 30 , 30 , 10 , 10 ]];
119
119
$ this ->model ->frames = [0.0 ];
120
120
$ this ->model ->validatePoints ();
121
121
$ this ->expectException (Exception::class);
@@ -126,7 +126,7 @@ public function testValidatePointsPolygon()
126
126
public function testValidatePointsPolygonFirstLastEqual ()
127
127
{
128
128
$ 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 ]];
130
130
$ this ->model ->frames = [0.0 ];
131
131
$ this ->model ->validatePoints ();
132
132
$ this ->expectException (Exception::class);
0 commit comments