public function testGetClosureFieldTypeThrowsRuntimeExceptionIncorrectType() { $registry = new FieldTypeRegistry(array('none' => $this->getClosure("I'm not a field type"))); $registry->getFieldType('none'); }