Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have Dummy/Test Container for testing purposes? #14

Open
gmponos opened this issue Jun 26, 2017 · 2 comments
Open

Have Dummy/Test Container for testing purposes? #14

gmponos opened this issue Jun 26, 2017 · 2 comments

Comments

@gmponos
Copy link

gmponos commented Jun 26, 2017

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?

@gmponos gmponos changed the title Dummy Container Have Dummy/Test Container for testing purposes? Jun 26, 2017
@moufmouf
Copy link
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?

@gmponos
Copy link
Author

gmponos commented Aug 3, 2017

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants