@@ -45,12 +45,12 @@ public function testHandleTrainingProposals()
45
45
$ filename = array_keys ($ input )[0 ];
46
46
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
47
47
$ box = $ input [$ filename ][$ tp ->id ];
48
- $ this ->assertEquals ([5 , 5 , 15 , 15 ], $ box );
48
+ $ this ->assertSame ([5 , 5 , 15 , 15 ], $ box );
49
49
50
50
$ vectors = TrainingProposalFeatureVector::where ('job_id ' , $ j ->id )->get ();
51
51
$ this ->assertCount (1 , $ vectors );
52
- $ this ->assertEquals ($ tp ->id , $ vectors [0 ]->id );
53
- $ this ->assertEquals (range (0 , 383 ), $ vectors [0 ]->vector ->toArray ());
52
+ $ this ->assertSame ($ tp ->id , $ vectors [0 ]->id );
53
+ $ this ->assertSame (range (0 , 383 ), $ vectors [0 ]->vector ->toArray ());
54
54
}
55
55
56
56
public function testHandleAnnotationCandidates ()
@@ -80,12 +80,12 @@ public function testHandleAnnotationCandidates()
80
80
$ filename = array_keys ($ input )[0 ];
81
81
$ this ->assertArrayHasKey ($ ac ->id , $ input [$ filename ]);
82
82
$ box = $ input [$ filename ][$ ac ->id ];
83
- $ this ->assertEquals ([5 , 5 , 15 , 15 ], $ box );
83
+ $ this ->assertSame ([5 , 5 , 15 , 15 ], $ box );
84
84
85
85
$ vectors = AnnotationCandidateFeatureVector::where ('job_id ' , $ j ->id )->get ();
86
86
$ this ->assertCount (1 , $ vectors );
87
- $ this ->assertEquals ($ ac ->id , $ vectors [0 ]->id );
88
- $ this ->assertEquals (range (0 , 383 ), $ vectors [0 ]->vector ->toArray ());
87
+ $ this ->assertSame ($ ac ->id , $ vectors [0 ]->id );
88
+ $ this ->assertSame (range (0 , 383 ), $ vectors [0 ]->vector ->toArray ());
89
89
}
90
90
91
91
public function testHandleConvertPoint ()
@@ -112,7 +112,7 @@ public function testHandleConvertPoint()
112
112
$ filename = array_keys ($ input )[0 ];
113
113
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
114
114
$ box = $ input [$ filename ][$ tp ->id ];
115
- $ this ->assertEquals ([188 , 188 , 412 , 412 ], $ box );
115
+ $ this ->assertSame ([188 , 188 , 412 , 412 ], $ box );
116
116
}
117
117
118
118
public function testHandleConvertRectangle ()
@@ -139,7 +139,7 @@ public function testHandleConvertRectangle()
139
139
$ filename = array_keys ($ input )[0 ];
140
140
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
141
141
$ box = $ input [$ filename ][$ tp ->id ];
142
- $ this ->assertEquals ([10 , 10 , 20 , 20 ], $ box );
142
+ $ this ->assertSame ([10 , 10 , 20 , 20 ], $ box );
143
143
}
144
144
145
145
public function testHandleConvertLineString ()
@@ -166,7 +166,7 @@ public function testHandleConvertLineString()
166
166
$ filename = array_keys ($ input )[0 ];
167
167
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
168
168
$ box = $ input [$ filename ][$ tp ->id ];
169
- $ this ->assertEquals ([10 , 10 , 20 , 20 ], $ box );
169
+ $ this ->assertSame ([10 , 10 , 20 , 20 ], $ box );
170
170
}
171
171
172
172
public function testHandleConvertEllipse ()
@@ -193,7 +193,7 @@ public function testHandleConvertEllipse()
193
193
$ filename = array_keys ($ input )[0 ];
194
194
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
195
195
$ box = $ input [$ filename ][$ tp ->id ];
196
- $ this ->assertEquals ([10 , 10 , 20 , 20 ], $ box );
196
+ $ this ->assertSame ([10 , 10 , 20 , 20 ], $ box );
197
197
}
198
198
199
199
public function testHandleConvertPolygon ()
@@ -220,7 +220,7 @@ public function testHandleConvertPolygon()
220
220
$ filename = array_keys ($ input )[0 ];
221
221
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
222
222
$ box = $ input [$ filename ][$ tp ->id ];
223
- $ this ->assertEquals ([10 , 10 , 20 , 20 ], $ box );
223
+ $ this ->assertSame ([10 , 10 , 20 , 20 ], $ box );
224
224
}
225
225
226
226
public function testHandleCoodinatesOutsideImageNegative ()
@@ -247,7 +247,7 @@ public function testHandleCoodinatesOutsideImageNegative()
247
247
$ filename = array_keys ($ input )[0 ];
248
248
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
249
249
$ box = $ input [$ filename ][$ tp ->id ];
250
- $ this ->assertEquals ([0 , 0 , 30 , 30 ], $ box );
250
+ $ this ->assertSame ([0 , 0 , 30 , 30 ], $ box );
251
251
}
252
252
253
253
public function testHandleCoodinatesOutsideImageNegativeProblematic ()
@@ -280,7 +280,7 @@ public function testHandleCoodinatesOutsideImageNegativeProblematic()
280
280
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
281
281
$ box = $ input [$ filename ][$ tp ->id ];
282
282
// Moving the box outside negative space makes it overflow in the positive space.
283
- $ this ->assertEquals ([0 , 0 , 25 , 25 ], $ box );
283
+ $ this ->assertSame ([0 , 0 , 25 , 25 ], $ box );
284
284
}
285
285
286
286
public function testHandleCoodinatesOutsideImagePositive ()
@@ -312,7 +312,7 @@ public function testHandleCoodinatesOutsideImagePositive()
312
312
$ filename = array_keys ($ input )[0 ];
313
313
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
314
314
$ box = $ input [$ filename ][$ tp ->id ];
315
- $ this ->assertEquals ([70 , 70 , 100 , 100 ], $ box );
315
+ $ this ->assertSame ([70 , 70 , 100 , 100 ], $ box );
316
316
}
317
317
318
318
public function testHandleCoodinatesOutsideImagePositiveProblematic ()
@@ -345,7 +345,7 @@ public function testHandleCoodinatesOutsideImagePositiveProblematic()
345
345
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
346
346
$ box = $ input [$ filename ][$ tp ->id ];
347
347
// Moving the box outside positive space makes it overflow in the negative space.
348
- $ this ->assertEquals ([0 , 0 , 25 , 25 ], $ box );
348
+ $ this ->assertSame ([0 , 0 , 25 , 25 ], $ box );
349
349
}
350
350
351
351
public function testHandleCoodinatesOutsideImageBoth ()
@@ -377,7 +377,7 @@ public function testHandleCoodinatesOutsideImageBoth()
377
377
$ filename = array_keys ($ input )[0 ];
378
378
$ this ->assertArrayHasKey ($ tp ->id , $ input [$ filename ]);
379
379
$ box = $ input [$ filename ][$ tp ->id ];
380
- $ this ->assertEquals ([0 , 0 , 100 , 100 ], $ box );
380
+ $ this ->assertSame ([0 , 0 , 100 , 100 ], $ box );
381
381
}
382
382
}
383
383
0 commit comments