@@ -70,7 +70,7 @@ public function testDetectDelimiter()
7070 $ delimiter = $ this ->detectDelimiter ($ stream );
7171 fclose ($ stream );
7272
73- $ this ->assertEquals ($ case ['expected ' ], $ delimiter , "Failed for {$ case ['file ' ]}" );
73+ $ this ->assertSame ($ case ['expected ' ], $ delimiter , "Failed for {$ case ['file ' ]}" );
7474 }
7575 }
7676
@@ -105,7 +105,7 @@ public function testCSVExportBasic()
105105 $ csvDestination ->testableImport ([$ row1 , $ row2 ], function ($ resources ) {
106106 // Callback - verify resources are marked as successful
107107 foreach ($ resources as $ resource ) {
108- $ this ->assertEquals ('success ' , $ resource ->getStatus ());
108+ $ this ->assertSame ('success ' , $ resource ->getStatus ());
109109 }
110110 });
111111
@@ -138,12 +138,12 @@ public function testCSVExportBasic()
138138 $ this ->assertContains ('email ' , $ header );
139139
140140 // Check first row data
141- $ this ->assertEquals ('row1 ' , $ row1Data [0 ]); // $id
141+ $ this ->assertSame ('row1 ' , $ row1Data [0 ]); // $id
142142 $ this ->assertStringContainsString ('user:123 ' , $ row1Data [1 ]); // $permissions
143143 // $createdAt and $updatedAt are empty for test data
144- $ this ->assertEquals ('John Doe ' , $ row1Data [4 ]); // name
145- $ this ->assertEquals ('30 ' , $ row1Data [5 ]); // age
146- $ this ->assertEquals ('john@example.com ' , $ row1Data [6 ]); // email
144+ $ this ->assertSame ('John Doe ' , $ row1Data [4 ]); // name
145+ $ this ->assertSame ('30 ' , $ row1Data [5 ]); // age
146+ $ this ->assertSame ('john@example.com ' , $ row1Data [6 ]); // email
147147
148148 // Cleanup
149149 if (is_dir ($ tempDir )) {
@@ -187,10 +187,10 @@ public function testCSVExportWithSpecialCharacters()
187187
188188 // Verify special characters are properly handled
189189 // Indices are shifted by 2 due to $createdAt and $updatedAt
190- $ this ->assertEquals ('Text with "quotes" ' , $ rowData [4 ]); // quote_field
191- $ this ->assertEquals ('Text, with, commas ' , $ rowData [5 ]); // comma_field
192- $ this ->assertEquals ("Text with \nnewlines " , $ rowData [6 ]); // newline_field
193- $ this ->assertEquals ('Text with "quotes", commas, and\nnewlines ' , $ rowData [7 ]); // mixed_field
190+ $ this ->assertSame ('Text with "quotes" ' , $ rowData [4 ]); // quote_field
191+ $ this ->assertSame ('Text, with, commas ' , $ rowData [5 ]); // comma_field
192+ $ this ->assertSame ("Text with \nnewlines " , $ rowData [6 ]); // newline_field
193+ $ this ->assertSame ('Text with "quotes", commas, and\nnewlines ' , $ rowData [7 ]); // mixed_field
194194
195195 // Cleanup
196196 if (is_dir ($ tempDir )) {
@@ -233,9 +233,9 @@ public function testCSVExportWithArrays()
233233
234234 // Arrays should be JSON encoded
235235 // Indices are shifted by 2 due to $createdAt and $updatedAt
236- $ this ->assertEquals ('["php","csv","export"] ' , $ rowData [4 ]); // tags
236+ $ this ->assertSame ('["php","csv","export"] ' , $ rowData [4 ]); // tags
237237 $ this ->assertJson ($ rowData [5 ]); // metadata should be valid JSON
238- $ this ->assertEquals ('' , $ rowData [6 ]); // empty_array
238+ $ this ->assertSame ('' , $ rowData [6 ]); // empty_array
239239 $ this ->assertJson ($ rowData [7 ]); // nested should be valid JSON
240240
241241 // Cleanup
@@ -279,11 +279,11 @@ public function testCSVExportWithNullValues()
279279 $ this ->assertNotFalse ($ rowData );
280280
281281 // Indices are shifted by 2 due to $createdAt and $updatedAt
282- $ this ->assertEquals ('Test ' , $ rowData [4 ]); // name
283- $ this ->assertEquals ('null ' , $ rowData [5 ]); // null_field -> "null" string
284- $ this ->assertEquals ('' , $ rowData [6 ]); // empty_string
285- $ this ->assertEquals ('0 ' , $ rowData [7 ]); // zero
286- $ this ->assertEquals ('false ' , $ rowData [8 ]); // false_bool
282+ $ this ->assertSame ('Test ' , $ rowData [4 ]); // name
283+ $ this ->assertSame ('null ' , $ rowData [5 ]); // null_field -> "null" string
284+ $ this ->assertSame ('' , $ rowData [6 ]); // empty_string
285+ $ this ->assertSame ('0 ' , $ rowData [7 ]); // zero
286+ $ this ->assertSame ('false ' , $ rowData [8 ]); // false_bool
287287
288288 // Cleanup
289289 if (is_dir ($ tempDir )) {
@@ -385,12 +385,12 @@ public function testCSVExportImportCompatibility()
385385 // Verify we can reconstruct the data
386386 $ reconstructed = \array_combine ($ header , $ data );
387387
388- $ this ->assertEquals ('compat_row ' , $ reconstructed ['$id ' ]);
389- $ this ->assertEquals ('John Doe ' , $ reconstructed ['name ' ]);
390- $ this ->assertEquals ('30 ' , $ reconstructed ['age ' ]);
391- $ this ->assertEquals ('null ' , $ reconstructed ['null_field ' ]); // null becomes "null" string
392- $ this ->assertEquals ('' , $ reconstructed ['empty_field ' ]);
393- $ this ->assertEquals ('true ' , $ reconstructed ['bool_field ' ]); // bool becomes string
388+ $ this ->assertSame ('compat_row ' , $ reconstructed ['$id ' ]);
389+ $ this ->assertSame ('John Doe ' , $ reconstructed ['name ' ]);
390+ $ this ->assertSame ('30 ' , $ reconstructed ['age ' ]);
391+ $ this ->assertSame ('null ' , $ reconstructed ['null_field ' ]); // null becomes "null" string
392+ $ this ->assertSame ('' , $ reconstructed ['empty_field ' ]);
393+ $ this ->assertSame ('true ' , $ reconstructed ['bool_field ' ]); // bool becomes string
394394 // Check that createdAt and updatedAt are in the reconstructed data
395395 $ this ->assertArrayHasKey ('$createdAt ' , $ reconstructed );
396396 $ this ->assertArrayHasKey ('$updatedAt ' , $ reconstructed );
@@ -402,8 +402,8 @@ public function testCSVExportImportCompatibility()
402402 $ tagsArray = json_decode ($ reconstructed ['tags ' ], true );
403403 $ metadataArray = json_decode ($ reconstructed ['metadata ' ], true );
404404
405- $ this ->assertEquals (['php ' , 'csv ' ], $ tagsArray );
406- $ this ->assertEquals (['key ' => 'value ' ], $ metadataArray );
405+ $ this ->assertSame (['php ' , 'csv ' ], $ tagsArray );
406+ $ this ->assertSame (['key ' => 'value ' ], $ metadataArray );
407407
408408 // Cleanup
409409 if (is_dir ($ tempDir )) {
0 commit comments