Skip to content

When running multiple unit test, ErrorException is thrown #3

@istaveren

Description

@istaveren

When the kernel is booted in different unit test the followin exception is thrown.

ErrorException: Warning: stream_wrapper_register(): Protocol s3:// is already defined. in vendor/pear/Services/Amazon/S3/Stream.php line 276

This can be fixed by adding a shutdown method in the class OrchestraS3StreamBundle

    /**
     * Shutdowns the Bundle.
     */
    public function shutdown()
    {
      stream_wrapper_unregister('s3');
      parent::shutdown();
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions