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); }
/** * @dataProvider getToStrings */ public function test__toString($zip, $name, $out) { $this->entity->setZip($zip)->setName($name); $this->assertEquals($out, $this->entity->__toString()); }