Esempio n. 1
0
 /**
  * @test
  */
 public function identifierSetInConstructorCanBeReadAgain()
 {
     $formDefinition = new FormDefinition('foo');
     $this->assertSame('foo', $formDefinition->getIdentifier());
     $formDefinition = new FormDefinition('bar');
     $this->assertSame('bar', $formDefinition->getIdentifier());
 }
Esempio n. 2
0
 /**
  * @return string The identifier of underlying form
  * @api
  */
 public function getIdentifier()
 {
     return $this->formDefinition->getIdentifier();
 }