Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

A PSR container implementation to be used only for testing

License

Notifications You must be signed in to change notification settings

webthinkgr/psr-test-container

Repository files navigation

A Simple PSR Container for Testing.

Build Status

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.