/** * @covers phpDocumentor\Descriptor\NamespaceDescriptor::__construct * @covers phpDocumentor\Descriptor\NamespaceDescriptor::getFunctions * @covers phpDocumentor\Descriptor\NamespaceDescriptor::setFunctions */ public function testSetAndGetFunctions() { $collection = new Collection(); $this->assertInstanceOf('phpDocumentor\\Descriptor\\Collection', $this->fixture->getFunctions()); $this->fixture->setFunctions($collection); $this->assertSame($collection, $this->fixture->getFunctions()); }