public function testCreateForm()
 {
     $om = $this->getMock('Doctrine\\Common\\Persistence\\ObjectManager');
     $this->type = new CitySelectType($om);
     $this->object = new City();
     $this->object->setName('Othis')->setZip(77280);
     $form = $this->factory->create($this->type);
 }
Пример #2
0
 /**
  * @dataProvider getNames
  */
 public function testName($in, $out)
 {
     $this->assertSame($this->entity, $this->entity->setName($in));
     $this->assertSame($out, $this->entity->getName());
 }