コード例 #1
0
ファイル: ParsedTest.php プロジェクト: leonardothibes/tbs
 /**
  * @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);
 }
コード例 #2
0
ファイル: Abstraction.php プロジェクト: leonardothibes/tbs
 /**
  * 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));
 }