public function testGetMissingValue() { $di = new \Elgg\Di\DiContainer(); $this->setExpectedException('\\Elgg\\Di\\MissingValueException', "Value or factory was not set for: foo"); $di->foo; }