Skip to content
This repository was archived by the owner on Jul 2, 2026. It is now read-only.
This repository was archived by the owner on Jul 2, 2026. It is now read-only.

Test class for container #64

Description

@flip111

The best Test baseclass to work with the container is WebTestCase.

However calling $this->getKernel() just returns null. Expected here either get the kernel or throw an exception.

Then to create the kernel the only option is to do $this->createClient() which gets a client which is useless if you just want the kernel.

Last a convenience function to access the container would be nice, perhaps ->get() like in symfony controllers to get services.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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