webthink / psr-test-container
This package is abandoned and no longer maintained.
No replacement package was suggested.
A PSR container implementation to be used only for testing
v1.0.0
2017-08-03 21:01 UTC
Requires
- php: >=5.4.0
- psr/container: ^1.0
Requires (Dev)
- phpunit/phpunit: 4.*|^5.0
This package is auto-updated.
Last update: 2020-07-04 20:51:30 UTC
README
A PSR container implementation to be used only for testing purposes.
Goal
The goal of this package is be used for testing purposes where a simple container will just do the job. Sometimes while writing unit tests you might need a container that does one simple thing. Keeping entries of services. The current packages serves this goal.
Install
Via Composer
$ composer require-dev webthink/psr-test-container
Usage
$container = new Webthink\Container\SimpleContaner([
'service1' => new \stdClass(),
]);
$service = $container->get('service1');
Credits
License
The MIT License (MIT). Please see License File for more information.