*/ protected function getPackageProviders($app): array { return [VideoExtractorServiceProvider::class]; } /** * @param \Illuminate\Foundation\Application $app * @return array */ protected function getPackageAliases($app): array { return [ 'Video' => \Apoloz\VideoExtractor\Facades\Video::class, ]; } /** * Disable caching by default in tests for deterministic behaviour. * * @param \Illuminate\Foundation\Application $app */ protected function getEnvironmentSetUp($app): void { $app['config']->set('video-extractor.cache.enabled', false); } /** * Read a fixture file from tests/fixtures. */ protected function fixture(string $path): string { $full = __DIR__ . '/fixtures/' . ltrim($path, '/'); if (!is_file($full)) { self::fail("Fixture not found: {$full}"); } return (string) file_get_contents($full); } }