Пример #1
0
 /**
  * @return void
  */
 public function testIfPropertyTypeIsTransferObjectTheReturnTypeShouldBeTransferObject()
 {
     $property = $this->getProperty('property1', 'Type');
     $transferDefinition = ['name' => 'name', 'property' => [$property]];
     $classDefinition = new ClassDefinition();
     $classDefinition->setDefinition($transferDefinition);
     $properties = $classDefinition->getProperties();
     $givenProperty = $properties['property1'];
     $expectedProperty = $this->getProperty('property1', 'Type', null, '\\Generated\\Shared\\Transfer\\TypeTransfer');
     $this->assertEquals($expectedProperty, $givenProperty);
 }