/** * @covers phpDocumentor\Descriptor\FileDescriptor::setConstants * @covers phpDocumentor\Descriptor\FileDescriptor::getConstants */ public function testSetAndGetConstants() { $this->assertInstanceOf('phpDocumentor\\Descriptor\\Collection', $this->fixture->getConstants()); $mockInstance = m::mock('phpDocumentor\\Descriptor\\Collection'); $mock = $mockInstance; $this->fixture->setConstants($mock); $this->assertSame($mockInstance, $this->fixture->getConstants()); }