Skip to content

Commit a91b899

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

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
@@ -90,7 +90,7 @@ public function getMimeTypesFromCategory($category)
9090
$v = new testValidatorFile();
9191
$t->is($v->guessFromFileBinary($tmpDir.'/test.txt'), 'text/plain', '->guessFromFileBinary() guesses the type of a given file');
9292
$t->is($v->guessFromFileBinary($tmpDir.'/foo.txt'), null, '->guessFromFileBinary() returns null if the file type is not guessable');
93-
$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');
93+
$t->is($v->guessFromFileBinary(PHP_BINARY), 'application/x-pie-executable', '->guessFromFileBinary() returns correct type if file is guessable');
9494
$t->is($v->guessFromFileBinary('-test'), null, '->guessFromFileBinary() returns null if file path has leading dash');
9595

9696
// ->getMimeType()

0 commit comments

Comments
 (0)