public function testTags()
    {
        $expected = '/**
 * @see https://github.com/gossi/docblock
 * @author gossi
 * @author KH
 * @since 28.5.2014
 */';
        $docblock = new Docblock($expected);
        $tags = $docblock->getTags();
        $this->assertEquals(4, $tags->size());
        $this->assertTrue($docblock->hasTag('see'));
        $this->assertTrue($docblock->hasTag('author'));
        $this->assertTrue($docblock->hasTag('since'));
        $this->assertFalse($docblock->hasTag('license'));
        $authors = $docblock->getTags('author');
        $this->assertEquals(2, $authors->size());
        $this->assertEquals($expected, $docblock->toString());
        $this->assertSame($docblock, $docblock->appendTag(ThrowsTag::create()));
        $tags = $docblock->getTags();
        $this->assertEquals(5, $tags->size());
        $this->assertTrue($docblock->hasTag('author'));
        $this->assertFalse($docblock->hasTag('moooh'));
    }
 public function testReadWrite()
 {
     $ex = new ThrowsTag('\\Exception oups');
     $this->assertEquals('@throws \\Exception oups', $ex->toString());
 }