public function removesInheritedValuesFromFields($testValue, $inherit, $inheritEmpty, $expectsOverride)
{
$instance = $this->createInstance();
$field = Form\Field\Input::create(array('type' => 'Input'));
$field->setName('test');
$field->setInherit($inherit);
$field->setInheritEmpty($inheritEmpty);
$values = array('foo' => 'bar', 'test' => $testValue);
$result = $this->callInaccessibleMethod($instance, 'unsetInheritedValues', $field, $values);
if (true === $expectsOverride) {
$this->assertEquals($values, $result);
} else {
$this->assertEquals(array('foo' => 'bar'), $result);
}
}