3 * phpDocumentor Version Tag Test
7 * @author Vasil Rangelov <boen.robot@gmail.com>
8 * @copyright 2010-2011 Mike van Riel / Naenius. (http://www.naenius.com)
9 * @license http://www.opensource.org/licenses/mit-license.php MIT
10 * @link http://phpdoc.org
13 namespace phpDocumentor\Reflection\DocBlock\Tag;
16 * Test class for \phpDocumentor\Reflection\DocBlock\Tag\VersionTag
18 * @author Vasil Rangelov <boen.robot@gmail.com>
19 * @copyright 2010-2011 Mike van Riel / Naenius. (http://www.naenius.com)
20 * @license http://www.opensource.org/licenses/mit-license.php MIT
21 * @link http://phpdoc.org
23 class VersionTagTest extends \PHPUnit_Framework_TestCase
26 * Test that the \phpDocumentor\Reflection\DocBlock\Tag\LinkTag can create
27 * a link for the @version doc block.
30 * @param string $content
31 * @param string $exContent
32 * @param string $exDescription
33 * @param string $exVersion
35 * @covers \phpDocumentor\Reflection\DocBlock\Tag\VersionTag
36 * @dataProvider provideDataForConstuctor
40 public function testConstructorParesInputsIntoCorrectFields(
47 $tag = new VersionTag($type, $content);
49 $this->assertEquals($type, $tag->getName());
50 $this->assertEquals($exContent, $tag->getContent());
51 $this->assertEquals($exDescription, $tag->getDescription());
52 $this->assertEquals($exVersion, $tag->getVersion());
56 * Data provider for testConstructorParesInputsIntoCorrectFields
60 public function provideDataForConstuctor()
62 // $type, $content, $exContent, $exDescription, $exVersion
73 "1.0\nFirst release.",
74 "1.0\nFirst release.",
80 "1.0\nFirst\nrelease.",
81 "1.0\nFirst\nrelease.",
108 'GIT: $Id$ Dev build',
109 'GIT: $Id$ Dev build',