Skip to content

Commit 79cfc8e

Browse files
committed
Fix test for /bin/ls file mimetype guessing, using application/x-pie-executable
1 parent 31d8460 commit 79cfc8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/validator/sfValidatorFileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function getMimeTypesFromCategory($category)
105105
$v = new testValidatorFile();
106106
$t->is($v->guessFromFileBinary($tmpDir.'/test.txt'), 'text/plain', '->guessFromFileBinary() guesses the type of a given file');
107107
$t->is($v->guessFromFileBinary($tmpDir.'/foo.txt'), null, '->guessFromFileBinary() returns null if the file type is not guessable');
108-
$t->is($v->guessFromFileBinary('/bin/ls'), (PHP_OS != 'Darwin') ? 'application/x-executable' : 'application/octet-stream', '->guessFromFileBinary() returns correct type if file is guessable');
108+
$t->is($v->guessFromFileBinary('/bin/ls'), (PHP_OS != 'Darwin') ? 'application/x-pie-executable' : 'application/octet-stream', '->guessFromFileBinary() returns correct type if file is guessable');
109109
$t->is($v->guessFromFileBinary('-test'), null, '->guessFromFileBinary() returns null if file path has leading dash');
110110

111111
// ->getMimeType()

0 commit comments

Comments
 (0)