8000 Remove(legacy): delete check for PHP < 5.2 in tests for mime_content_… · FriendsOfSymfony1/symfony1@2b5a586 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b5a586

Browse files
committed
Remove(legacy): delete check for PHP < 5.2 in tests for mime_content_type bug
1 parent 019e25d commit 2b5a586

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/unit/validator/sfValidatorFileTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@ public function getMimeTypesFromCategory($category)
8181
} else {
8282
$v = new testValidatorFile();
8383
$mimeType = $v->guessFromMimeContentType($tmpDir.'/test.txt');
84-
if (version_compare(PHP_VERSION, '5.3', '<') && false === $mimeType) {
85-
$t->skip('mime_content_type has some issue with php 5.2', 1);
86-
} else {
87-
$t->is($mimeType, 'text/plain', '->guessFromMimeContentType() guesses the type of a given file');
88-
}
84+
$t->is($mimeType, 'text/plain', '->guessFromMimeContentType() guesses the type of a given file');
8985
$t->is($v->guessFromMimeContentType($tmpDir.'/foo.txt'), null, '->guessFromMimeContentType() returns null if the file type is not guessable');
9086
}
9187

0 commit comments

Comments
 (0)
0