mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Shortened some long variable names in the test suite, as advised by PHPMD's default settings.
This commit is contained in:
@@ -28,9 +28,9 @@ class ParamTagTest extends \PHPUnit_Framework_TestCase
|
|||||||
*
|
*
|
||||||
* @param string $type
|
* @param string $type
|
||||||
* @param string $content
|
* @param string $content
|
||||||
* @param string $extracted_type
|
* @param string $extractedType
|
||||||
* @param string $extracted_variable_name
|
* @param string $extractedVarName
|
||||||
* @param string $extracted_description
|
* @param string $extractedDescription
|
||||||
*
|
*
|
||||||
* @covers \phpDocumentor\Reflection\DocBlock\Tag\ParamTag::__construct
|
* @covers \phpDocumentor\Reflection\DocBlock\Tag\ParamTag::__construct
|
||||||
*
|
*
|
||||||
@@ -41,15 +41,15 @@ class ParamTagTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function testConstructorParsesInputsIntoCorrectFields(
|
public function testConstructorParsesInputsIntoCorrectFields(
|
||||||
$type,
|
$type,
|
||||||
$content,
|
$content,
|
||||||
$extracted_type,
|
$extractedType,
|
||||||
$extracted_variable_name,
|
$extractedVarName,
|
||||||
$extracted_description
|
$extractedDescription
|
||||||
) {
|
) {
|
||||||
$tag = new ParamTag($type, $content);
|
$tag = new ParamTag($type, $content);
|
||||||
|
|
||||||
$this->assertEquals($extracted_type, $tag->getTypes());
|
$this->assertEquals($extractedType, $tag->getTypes());
|
||||||
$this->assertEquals($extracted_variable_name, $tag->getVariableName());
|
$this->assertEquals($extractedVarName, $tag->getVariableName());
|
||||||
$this->assertEquals($extracted_description, $tag->getDescription());
|
$this->assertEquals($extractedDescription, $tag->getDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ class ReturnTagTest extends ParamTagTest
|
|||||||
* understand the Return DocBlock.
|
* understand the Return DocBlock.
|
||||||
*
|
*
|
||||||
* @param string $content
|
* @param string $content
|
||||||
* @param string $extracted_type
|
* @param string $extractedType
|
||||||
* @param string $extracted_description
|
* @param string $extractedDescription
|
||||||
*
|
*
|
||||||
* @covers \phpDocumentor\Reflection\DocBlock\Tag\ReturnTag::__construct
|
* @covers \phpDocumentor\Reflection\DocBlock\Tag\ReturnTag::__construct
|
||||||
*
|
*
|
||||||
@@ -38,13 +38,13 @@ class ReturnTagTest extends ParamTagTest
|
|||||||
*/
|
*/
|
||||||
public function testConstructorParsesInputsIntoCorrectFields(
|
public function testConstructorParsesInputsIntoCorrectFields(
|
||||||
$content,
|
$content,
|
||||||
$extracted_type,
|
$extractedType,
|
||||||
$extracted_description
|
$extractedDescription
|
||||||
) {
|
) {
|
||||||
$tag = new ReturnTag('return', $content);
|
$tag = new ReturnTag('return', $content);
|
||||||
|
|
||||||
$this->assertEquals($extracted_type, $tag->getTypes());
|
$this->assertEquals($extractedType, $tag->getTypes());
|
||||||
$this->assertEquals($extracted_description, $tag->getDescription());
|
$this->assertEquals($extractedDescription, $tag->getDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user