/** * @see \Tbs\DocBlock\Collection\Parsed::setDescription() * @dataProvider providerDescription */ public function testSetDescription($description) { $rs = $this->object->setDescription($description); $this->assertInstanceOf('\\Tbs\\DocBlock\\Collection\\Parsed', $rs); $rs = $this->object->getDescription(); $this->assertInternalType('string', $rs); $this->assertEquals(trim($description), $rs); }
/** * Exports. * @return string */ public function export() { $tag = @implode(' ', array('@' . $this->parsed->getTag(), $this->parsed->getType(), $this->parsed->getContent(), $this->parsed->getDescription())); return preg_replace('/\\s\\s+/', ' ', trim($tag)); }