public function testConstruct() { $fixture = <<<DOCBLOCK /** * This is a short description. * * This is a long description. * * @see \\MyClass * @return void */ DOCBLOCK; $object = new DocBlock($fixture); $this->assertEquals('This is a short description.', $object->getShortDescription()); $this->assertEquals('This is a long description.', $object->getLongDescription()->getContents()); $this->assertEquals(2, count($object->getTags())); $this->assertTrue($object->hasTag('see')); $this->assertTrue($object->hasTag('return')); }