/**
  * @covers phpDocumentor\Descriptor\ClassDescriptor::getInheritedConstants
  */
 public function testGetInheritedConstantsWithClassDescriptorParent()
 {
     $collectionMock = m::mock('phpDocumentor\\Descriptor\\Collection');
     $collectionMock->shouldReceive('get');
     $mock = m::mock('phpDocumentor\\Descriptor\\ClassDescriptor');
     $mock->shouldReceive('getConstants')->andReturn(new Collection(array('constants')));
     $mock->shouldReceive('getInheritedConstants')->andReturn(new Collection(array('inherited')));
     $this->fixture->setParent($mock);
     $result = $this->fixture->getInheritedConstants();
     $this->assertInstanceOf('phpDocumentor\\Descriptor\\Collection', $result);
     $expected = array('constants', 'inherited');
     $this->assertSame($expected, $result->getAll());
 }