public function testEmptyValueConfiguresLabelOfEmptyField() { $field = new ChoiceField('name', array('multiple' => false, 'expanded' => false, 'choices' => $this->choices, 'required' => false, 'empty_value' => 'Foobar')); $this->assertEquals(array('' => 'Foobar') + $this->choices, $field->getOtherChoices()); }