Skip to content

Have Dummy/Test Container for testing purposes? #14

Open

Description

@gmponos

PSR Logger has a Null Logger which can be used easily for testing purposes.

Is there any thought about creating a Dummy/Test/Null container for the same reasons?

Activity

  1. changed the title [-]Dummy Container[/-] [+]Have Dummy/Test Container for testing purposes?[/+] on Jun 26, 2017
  2. moufmouf commented on Jun 27, 2017

    @moufmouf
    Contributor

    I believe that starting with PSR6+, the decision has been made not to add any implementations to the PSR packages.

    Instead, a "psr/xxx-util" package is proposed for common utility classes. For instance: https://github.com/php-fig/cache-util

    We could definitely use such a package, although I don't know what could be put in it apart from a Dummy container (maybe EmptyContainer would be a better naming). Maybe a CompositeContainer?

  3. gmponos commented on Aug 3, 2017

    @gmponos
    Author

    Hello,

    I haven't seen any related package being created since the report of these issue (although it's not so old issue). But because there was a need in my projects I have started creating various DummyContainers in here and there order to do some tests . So I decided instead to create this package:

    https://github.com/webthinkgr/psr-test-container

    If you like it I am willing to make any necessary to be compatible with PSR (like namespaces etc) and transfer it if you wish.

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