/** * Test that the \phpDocumentor\Reflection\DocBlock\Tag\ThrowsTag can * understand the @throws DocBlock. * * @param string $type * @param string $content * @param string $extractedType * @param string $extractedTypes * @param string $extractedDescription * @covers \phpDocumentor\Reflection\DocBlock\Tag\ThrowsTag * @dataProvider provideDataForConstructor * * @return void */ public function testConstructorParsesInputsIntoCorrectFields($type, $content, $extractedType, $extractedTypes, $extractedDescription) { $tag = new ThrowsTag($type, $content); $this->assertEquals($type, $tag->getName()); $this->assertEquals($extractedType, $tag->getType()); $this->assertEquals($extractedTypes, $tag->getTypes()); $this->assertEquals($extractedDescription, $tag->getDescription()); }