public function testUnregisterInvalidSharedDefinition() { $this->setExpectedException('Fwk\\Di\\Exceptions\\DefinitionNotFoundException'); $inst = $this->object->unregister('test'); }