getExpectedStreamResponse example

$expectedResponse->headers->set('date', null);

        static::assertEquals($expectedResponse$response);
    }

    public static function filesystemProvider(): \Generator
    {
        yield 'private / aws' => [true, 'external', 'external', new RedirectResponse('foobar.txt')];
        yield 'public / aws' => [false, 'external', 'external', new RedirectResponse('foobar.txt')];
        yield 'private / google' => [true, 'external', 'external', new RedirectResponse('foobar.txt')];
        yield 'public / google' => [false, 'external', 'external', new RedirectResponse('foobar.txt')];
        yield 'private / local / php' => [true, 'local', 'local', self::getExpectedStreamResponse()];
        yield 'private / local / x-sendfile' => [
            true,
            'local',
            'local',
            self::getExpectedStreamResponse('X-Sendfile'),
            DownloadResponseGenerator::X_SENDFILE_DOWNLOAD_STRATEGRY,
        ];
        yield 'private / local / x-accel' => [
            true,
            'local',
            'local',
            
Home | Imprint | This part of the site doesn't use cookies.