3 * phpDocumentor Covers 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\CoversTag
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 CoversTagTest extends \PHPUnit_Framework_TestCase
26 * Test that the \phpDocumentor\Reflection\DocBlock\Tag\CoversTag can create
27 * a link for the covers doc block.
30 * @param string $content
31 * @param string $exContent
32 * @param string $exReference
34 * @covers \phpDocumentor\Reflection\DocBlock\Tag\CoversTag
35 * @dataProvider provideDataForConstuctor
39 public function testConstructorParesInputsIntoCorrectFields(
46 $tag = new CoversTag($type, $content);
48 $this->assertEquals($type, $tag->getName());
49 $this->assertEquals($exContent, $tag->getContent());
50 $this->assertEquals($exDescription, $tag->getDescription());
51 $this->assertEquals($exReference, $tag->getReference());
55 * Data provider for testConstructorParesInputsIntoCorrectFields
59 public function provideDataForConstuctor()
61 // $type, $content, $exContent, $exDescription, $exReference
79 'Foo::bar() Testing comments',
80 'Foo::bar() Testing comments',