Skip to content

Commit 1b00de4

Browse files
committed
Fix(docker): Fix tests for file-type checks on new docker alpine images
1 parent 89574d0 commit 1b00de4

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
@@ -94,7 +94,7 @@ public function getMimeTypesFromCategory($category)
9494
$v = new testValidatorFile();
9595
$t->is($v->guessFromFileBinary($tmpDir.'/test.txt'), 'text/plain', '->guessFromFileBinary() guesses the type of a given file');
9696
$t->is($v->guessFromFileBinary($tmpDir.'/foo.txt'), null, '->guessFromFileBinary() returns null if the file type is not guessable');
97-
$t->like($v->guessFromFileBinary('/bin/ls'), (PHP_OS != 'Darwin') ? '/^application\/x-(pie-executable|executable|sharedlib)$/' : '/^application/octet-stream$/', '->guessFromFileBinary() returns correct type if file is guessable');
97+
$t->is($v->guessFromFileBinary('/usr/bin/file'), 'application/x-pie-executable', '->guessFromFileBinary() returns correct type if file is guessable');
9898
$t->is($v->guessFromFileBinary('-test'), null, '->guessFromFileBinary() returns null if file path has leading dash');
9999

100100
// ->getMimeType()

0 commit comments

Comments
 (0)