Пример #1
0
 /**
  * @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);
 }
Пример #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));
 }