Ejemplo n.º 1
0
 public function testSetGenerator_calledAfterAdding()
 {
     $generator = $this->getMock('Symfony\\Components\\Form\\HtmlGeneratorInterface');
     $field = $this->createMockField('firstName');
     $field->expects($this->exactly(2))->method('setGenerator');
     $group = new FieldGroup('author');
     $group->add($field);
     $group->setGenerator($generator);
 }