/** * @see \Tbs\DocBlock\Collection\Parsed::setContent() * @dataProvider providerContent */ public function testSetContent($content) { $rs = $this->object->setContent($content); $this->assertInstanceOf('\\Tbs\\DocBlock\\Collection\\Parsed', $rs); $rs = $this->object->getContent(); $this->assertInternalType('string', $rs); $this->assertEquals(trim($content), $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)); }