/** * @see \Tbs\DocBlock\Collection\Parsed::setTag() * @dataProvider providerTags */ public function testSetTag($tag, $expected) { $rs = $this->object->setTag($tag); $this->assertInstanceOf('\\Tbs\\DocBlock\\Collection\\Parsed', $rs); $rs = $this->object->getTag(); $this->assertInternalType('string', $rs); $this->assertEquals($expected, $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)); }