/**
  * @depends testGeneratedEntityClass
  * @param ClassMetadata $metadata
  */
 public function testEntityUpdatingWorks($metadata)
 {
     $metadata->mapField(array('fieldName' => 'test', 'type' => 'string'));
     $this->_generator->writeEntityClass($metadata, __DIR__);
     $code = file_get_contents(__DIR__ . '/EntityGeneratorBook.php');
     $this->assertTrue(strstr($code, 'private $test;') !== false);
     $this->assertTrue(strstr($code, 'private $test;') !== false);
     $this->assertTrue(strstr($code, 'public function getTest(') !== false);
     $this->assertTrue(strstr($code, 'public function setTest(') !== false);
     unlink(__DIR__ . '/EntityGeneratorBook.php');
 }
 public function testStringModel()
 {
     $this->markTestskipped();
     $builder = new FormBuilder();
     $model = new TestModel();
     $form = $builder->createFormBuilder($model)->add('string', 'text')->getForm();
     $form->handle(['string' => 'test']);
     $classMetadata = new ClassMetadata(TestModel::class);
     $classMetadata->mapField(array('name' => 'string', 'type' => 'string'));
     $validatorMetadata = new ClassMetadata(TestModel::class);
     $validatorMetadata->addConstraint();
 }