setProperties() public method

{@inheritDoc}
public setProperties ( phpDocumentor\Descriptor\Collection $properties )
$properties phpDocumentor\Descriptor\Collection
 /**
  * @covers phpDocumentor\Descriptor\TraitDescriptor::setProperties
  * @covers phpDocumentor\Descriptor\TraitDescriptor::getProperties
  */
 public function testSettingAndGettingProperties()
 {
     $this->assertInstanceOf('phpDocumentor\\Descriptor\\Collection', $this->fixture->getProperties());
     $mock = m::mock('phpDocumentor\\Descriptor\\Collection');
     $this->fixture->setProperties($mock);
     $this->assertSame($mock, $this->fixture->getProperties());
 }
 /**
  * @covers phpDocumentor\Descriptor\TraitDescriptor::setPackage
  */
 public function testSettingAndGettingPackage()
 {
     $package = new \phpDocumentor\Descriptor\PackageDescriptor();
     $mockPropertyDescriptor = m::mock('phpDocumentor\\Descriptor\\PropertyDescriptor');
     $mockPropertyDescriptor->shouldReceive('setPackage')->with($package);
     $mockMethodDescriptor = m::mock('phpDocumentor\\Descriptor\\MethodDescriptor');
     $mockMethodDescriptor->shouldReceive('setPackage')->with($package);
     $propertyCollection = new Collection(array($mockPropertyDescriptor));
     $methodCollection = new Collection(array($mockMethodDescriptor));
     $this->fixture->setProperties($propertyCollection);
     $this->fixture->setMethods($methodCollection);
     $this->fixture->setPackage($package);
     $this->assertSame($package, $this->fixture->getPackage());
 }