/** * @covers phpDocumentor\Compiler\Linker\Linker::__construct * @covers phpDocumentor\Compiler\Linker\Linker::getSubstitutions */ public function testSetFieldsToSubstitute() { $elementList = array('phpDocumentor\\Descriptor\\ProjectDescriptor' => 'files', 'phpDocumentor\\Descriptor\\FileDescriptor' => 'classes', 'phpDocumentor\\Descriptor\\ClassDescriptor' => 'parent'); $linker = new Linker($elementList); $this->assertSame($elementList, $linker->getSubstitutions()); }