Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function getValueOptions()
 {
     $valueOptions = parent::getValueOptions();
     if (!$valueOptions) {
         // Inicialização
         $this->setValueOptions((new BooleanType())->getDefinition());
         // Captura
         $valueOptions = parent::getValueOptions();
     }
     return $valueOptions;
 }
Beispiel #2
0
 public function testEmptyOption()
 {
     $element = new Select();
     $emptyOption = $element->getEmptyOption();
     $this->assertEquals('-- Selecione --', $emptyOption);
 }