<?php

namespace App\Tests\Service\Media;

use App\Service\Media\VideoThumbnailer;
use PHPUnit\Framework\TestCase;

class VideoThumbnailerTest extends TestCase
{
    public function testGenerateThumbnailFileNotFound(): void
    {
        $thumbnailer = new VideoThumbnailer();
        
        // Either RuntimeException (from Process check) or just ProcessFailedException if checking output
        // The code throws RuntimeException if !isSuccessful()
        $this->expectException(\RuntimeException::class);
        
        $thumbnailer->generateThumbnail('non_existent_video_file.mp4', 'output_thumb.jpg');
    }
}
