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