PopTest\Service\ServiceTest::testRemove PHP Метод

testRemove() публичный Метод

public testRemove ( )
    public function testRemove()
    {
        $l = new Locator(array('config' => array('call' => 'Pop\\Config', 'params' => array(array('test' => 123), true)), 'rgb' => array('call' => 'Pop\\Color\\Space\\Rgb', 'params' => function () {
            return array(255, 0, 0);
        }), 'color' => function ($locator) {
            return new \Pop\Color\Color($locator->get('rgb'));
        }));
        $c = $l->get('config');
        $l->remove('config');
        $this->assertInstanceOf('Pop\\Config', $c);
        $this->assertNull($l->get('config'));
    }