3 * phpDocumentor Var Tag Test
7 * @author Daniel O'Connor <daniel.oconnor@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\VarTag
18 * @author Daniel O'Connor <daniel.oconnor@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 VarTagTest extends \PHPUnit_Framework_TestCase
26 * Test that the \phpDocumentor\Reflection\DocBlock\Tag\VarTag can
27 * understand the @var doc block.
30 * @param string $content
31 * @param string $exType
32 * @param string $exVariable
33 * @param string $exDescription
35 * @covers \phpDocumentor\Reflection\DocBlock\Tag\VarTag
36 * @dataProvider provideDataForConstuctor
40 public function testConstructorParesInputsIntoCorrectFields(
47 $tag = new VarTag($type, $content);
49 $this->assertEquals($type, $tag->getName());
50 $this->assertEquals($exType, $tag->getType());
51 $this->assertEquals($exVariable, $tag->getVariableName());
52 $this->assertEquals($exDescription, $tag->getDescription());
56 * Data provider for testConstructorParesInputsIntoCorrectFields
60 public function provideDataForConstuctor()
62 // $type, $content, $exType, $exVariable, $exDescription
80 'int $bob Number of bobs',