Exemplo n.º 1
0
 /**
  */
 public function testDefault()
 {
     /** @var OptionsResolver|ObjectProphecy $optionResolver */
     $optionResolver = $this->prophesize('Symfony\\Component\\OptionsResolver\\OptionsResolver');
     $this->prophesizeDefault($optionResolver);
     $this->type->configureOptions($optionResolver->reveal());
 }
Exemplo n.º 2
0
 /**
  * @param OptionsResolver $resolver
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefault('data_class', 'AppBundle\\Entity\\Item');
 }