Esempio n. 1
0
 /**
  * @see \Tbs\DocBlock\Tag\Abstraction::export()
  */
 public function testExport()
 {
     $this->object->setTag('param')->setType('string')->setContent('$name')->setDescription('This is description of param.');
     $rs = $this->object->export();
     $this->assertInternalType('string', $rs);
     $this->assertEquals('@param string $name This is description of param.', $rs);
 }
Esempio n. 2
0
 /**
  * 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));
 }