Example #1
0
 public function testGenericGetters()
 {
     $type = $this->prophesize(TypeInterface::class)->reveal();
     $metadata = new Field('fieldName', 'propertyName', $type, true, true);
     $this->assertSame('fieldName', $metadata->getFieldName());
     $this->assertSame('propertyName', $metadata->getPropertyName());
     $this->assertSame($type, $metadata->getType());
     $this->assertTrue($metadata->isRepeatable());
     $this->assertTrue($metadata->isReadOnly());
 }