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