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

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

public testClassWithParams ( )
    public function testClassWithParams()
    {
        $l = new Locator();
        $l->set('config1', 'PopTest\\Service\\Foo', array(123))->set('config2', 'PopTest\\Service\\Foo->bar', array(456))->set('config3', 'PopTest\\Service\\Foo::baz', array(789));
        $c1 = $l->get('config1');
        $c2 = $l->get('config2');
        $c3 = $l->get('config3');
        $this->assertInstanceOf('PopTest\\Service\\Foo', $c1);
        $this->assertInstanceOf('Pop\\Config', $c2);
        $this->assertInstanceOf('Pop\\Config', $c3);
    }