Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

How to test unused private services #9890

Copy link
Copy link
Closed
@komik966

Description

@komik966
Issue body actions

In Symfony 4.1 appeared nice feature: https://symfony.com/blog/new-in-symfony-4-1-simpler-service-testing
As mentioned symfony/symfony#26499 (comment) removing unused private services from test.service_container is intended behaviour.

In my bundle (call it bundle A) I've private service which will be type-hinted in other bundles, but not in bundle A.
Is there optimal way to write tests for this service in bundle A?

Metadata

Metadata

Assignees

No one assigned

    Labels

    TestingactionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.