webthink / psr-test-container
A PSR container implementation to be used only for testing
Installs: 808
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/webthink/psr-test-container
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.