summaryrefslogtreecommitdiffstats
path: root/3.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-09-22 08:07:14 +0200
committerRemi Collet <remi@remirepo.net>2020-09-22 08:07:14 +0200
commit37e7b6f8c8c6932d0fb809d4f91153b81b24c699 (patch)
tree7470c869dd865e5b3b2c21b0b10138a624993049 /3.patch
parent29d48958a8bbb33fe1fa334abadbcdb57346ad44 (diff)
update to 1.5.0
add patch for test suite from upstream and from https://github.com/thephpleague/mime-type-detection/pull/3 open https://github.com/thephpleague/mime-type-detection/pull/4 phpunit 9 switch to phpunit9
Diffstat (limited to '3.patch')
-rw-r--r--3.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/3.patch b/3.patch
new file mode 100644
index 0000000..473584e
--- /dev/null
+++ b/3.patch
@@ -0,0 +1,22 @@
+From 4ce57906fee375c3cd1bb86942d8df991982eb53 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@famillecollet.com>
+Date: Tue, 22 Sep 2020 07:53:33 +0200
+Subject: [PATCH] Fix test failure with 8.0.0beta4
+
+---
+ src/FinfoMimeTypeDetectorTest.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/FinfoMimeTypeDetectorTest.php b/src/FinfoMimeTypeDetectorTest.php
+index 9f6c91b..606ecaa 100644
+--- a/src/FinfoMimeTypeDetectorTest.php
++++ b/src/FinfoMimeTypeDetectorTest.php
+@@ -71,7 +71,7 @@ public function detecting_from_a_file_location(): void
+ {
+ $mimeType = $this->detector->detectMimeTypeFromFile(__DIR__.'/../test_files/flysystem.svg');
+
+- $this->assertEquals('image/svg', $mimeType);
++ $this->assertStringStartsWith('image/svg', $mimeType);
+ }
+
+ /**