Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a83d5f8

Browse filesBrowse files
committed
Add test to check for xml version using the guesser and ensure we guess appropriately.
1 parent b30f4c1 commit a83d5f8
Copy full SHA for a83d5f8

File tree

Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed
Binary file not shown.

‎src/Symfony/Component/HttpFoundation/Tests/File/MimeType/MimeTypeTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/File/MimeType/MimeTypeTest.php
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ public function testGuessFileWithUnknownExtension()
6060
$this->assertEquals('application/octet-stream', MimeTypeGuesser::getInstance()->guess(__DIR__.'/../Fixtures/.unknownextension'));
6161
}
6262

63+
public function testGuessWithDuplicatedFiletype()
64+
{
65+
$this->assertEquals('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', MimeTypeGuesser::getInstance()->guess(__DIR__.'/../Fixtures/case-sensitive-mime-type.xlsm'));
66+
}
67+
6368
public function testGuessWithIncorrectPath()
6469
{
6570
$this->expectException('Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.