8000 VideoValidatorTest should be skipped if ffmpeg is not available on th… · symfonyaml/symfony@a083f66 · GitHub
[go: up one dir, main page]

Skip to content

Commit a083f66

Browse files
author
symfonyaml
committed
VideoValidatorTest should be skipped if ffmpeg is not available on the system
1 parent ab74399 commit a083f66

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Symfony/Component/Validator/Tests/Constraints/VideoValidatorTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ protected function createValidator(): VideoValidator
3838

3939
protected function setUp(): void
4040
{
41+
// This test should be skipped if ffmpeg is not available on the system
42+
exec('which ffmpeg', $output, $status);
43+
44+
if (0 !== $status) {
45+
$this->markTestSkipped('FFMpeg is not available.');
46+
}
47+
4148
parent::setUp();
4249

4350
$this->video = __DIR__.'/Fixtures/test.mp4';

0 commit comments

Comments
 (0)
0