Elgg\Di\DiContainerTest::testGetFactoryUncallableArrayObject PHP Метод

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

    public function testGetFactoryUncallableArrayObject()
    {
        $di = new \Elgg\Di\DiContainer();
        $di->setFactory('foo', array($this, 'not-a-real-callable'));
        $this->setExpectedException('\\Elgg\\Di\\FactoryUncallableException', "Factory for 'foo' was uncallable: Elgg\\Di\\DiContainerTest->not-a-real-callable");
        $di->foo;
    }