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