/** * Test that the \phpDocumentor\Reflection\DocBlock\Tag\ParamTag can * understand the param DocBlock. * * @param string $type * @param string $content * @param string $extracted_type * @param string $extracted_variable_name * @param string $extracted_description * * @covers \phpDocumentor\Reflection\DocBlock\Tag\ParamTag::__construct * * @dataProvider provideDataForConstructor * * @return void */ public function testConstructorParsesInputsIntoCorrectFields($type, $content, $extracted_type, $extracted_variable_name, $extracted_description) { $tag = new ParamTag($type, $content); $this->assertEquals($extracted_type, $tag->getTypes()); $this->assertEquals($extracted_variable_name, $tag->getVariableName()); $this->assertEquals($extracted_description, $tag->getDescription()); }