コード例 #1
0
 /**
  * @covers phpDocumentor\Descriptor\ClassDescriptor::setConstants
  * @covers phpDocumentor\Descriptor\ClassDescriptor::getConstants
  */
 public function testSettingAndGettingConstants()
 {
     $this->assertInstanceOf('phpDocumentor\\Descriptor\\Collection', $this->fixture->getConstants());
     $mock = m::mock('phpDocumentor\\Descriptor\\Collection');
     $this->fixture->setConstants($mock);
     $this->assertSame($mock, $this->fixture->getConstants());
 }