Esempio n. 1
0
 /**
  * @see \Tbs\DocBlock\Collection\Parsed::setType()
  * @dataProvider providerTypes
  */
 public function testSetType($type)
 {
     $rs = $this->object->setType($type);
     $this->assertInstanceOf('\\Tbs\\DocBlock\\Collection\\Parsed', $rs);
     $rs = $this->object->getType();
     $this->assertInternalType('string', $rs);
     $this->assertEquals(trim($type), $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));
 }