Skip to content

avoid test failure because of array order - #42

Open
remicollet wants to merge 1 commit into
thephpleague:mainfrom
remicollet:issue-sort
Open

remicollet wants to merge 1 commit into
thephpleague:mainfrom
remicollet:issue-sort

Conversation

@remicollet

Copy link
Copy Markdown
Contributor

Without this patch

PHPUnit 10.5.64 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.6.0alpha1
Configuration: /dev/shm/BUILD/php-league-mime-type-detection-1.17.0-build/mime-type-detection-1.17.0/phpunit.xml.dist

.................F...                                             21 / 21 (100%)

Time: 00:00.016, Memory: 11.00 MB

There was 1 failure:

1) League\MimeTypeDetection\GeneratedExtensionToMimeTypeMapTest::looking_up_extensions with data set #1 ('image/jpeg', ['jpeg', 'jpg', 'jpe', 'jfif'])
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    0 => 'jpeg'
-    1 => 'jpg'
+    0 => 'jpg'
+    1 => 'jpeg'
     2 => 'jpe'
     3 => 'jfif'
 )

/dev/shm/BUILD/php-league-mime-type-detection-1.17.0-build/mime-type-detection-1.17.0/src/GeneratedExtensionToMimeTypeMapTest.php:71

FAILURES!

Notice "main" branch is outdated, changes in 1.17.0 tag are missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant