PopTest\Service\ServiceTest::testRecursiveException PHP 메소드

testRecursiveException() 공개 메소드

    public function testRecursiveException()
    {
        $this->setExpectedException('Pop\\Service\\Exception');
        $l = new Locator(array('service1' => function ($locator) {
            return $locator->get('service2');
        }, 'service2' => function ($locator) {
            return $locator->get('service1');
        }));
        $s = $l->get('service1');
    }