Skip to content

Commit d611970

Browse files
committed
Shortened some long variable names in the test suite, as advised by PHPMD's default settings.
1 parent ba1395e commit d611970

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

tests/phpDocumentor/Reflection/DocBlock/Tag/ParamTagTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class ParamTagTest extends \PHPUnit_Framework_TestCase
2828
*
2929
* @param string $type
3030
* @param string $content
31-
* @param string $extracted_type
32-
* @param string $extracted_variable_name
33-
* @param string $extracted_description
31+
* @param string $extractedType
32+
* @param string $extractedVarName
33+
* @param string $extractedDescription
3434
*
3535
* @covers \phpDocumentor\Reflection\DocBlock\Tag\ParamTag::__construct
3636
*
@@ -41,15 +41,15 @@ class ParamTagTest extends \PHPUnit_Framework_TestCase
4141
public function testConstructorParsesInputsIntoCorrectFields(
4242
$type,
4343
$content,
44-
$extracted_type,
45-
$extracted_variable_name,
46-
$extracted_description
44+
$extractedType,
45+
$extractedVarName,
46+
$extractedDescription
4747
) {
4848
$tag = new ParamTag($type, $content);
4949

50-
$this->assertEquals($extracted_type, $tag->getTypes());
51-
$this->assertEquals($extracted_variable_name, $tag->getVariableName());
52-
$this->assertEquals($extracted_description, $tag->getDescription());
50+
$this->assertEquals($extractedType, $tag->getTypes());
51+
$this->assertEquals($extractedVarName, $tag->getVariableName());
52+
$this->assertEquals($extractedDescription, $tag->getDescription());
5353
}
5454

5555
/**

tests/phpDocumentor/Reflection/DocBlock/Tag/ReturnTagTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class ReturnTagTest extends ParamTagTest
2727
* understand the Return DocBlock.
2828
*
2929
* @param string $content
30-
* @param string $extracted_type
31-
* @param string $extracted_description
30+
* @param string $extractedType
31+
* @param string $extractedDescription
3232
*
3333
* @covers \phpDocumentor\Reflection\DocBlock\Tag\ReturnTag::__construct
3434
*
@@ -38,13 +38,13 @@ class ReturnTagTest extends ParamTagTest
3838
*/
3939
public function testConstructorParsesInputsIntoCorrectFields(
4040
$content,
41-
$extracted_type,
42-
$extracted_description
41+
$extractedType,
42+
$extractedDescription
4343
) {
4444
$tag = new ReturnTag('return', $content);
4545

46-
$this->assertEquals($extracted_type, $tag->getTypes());
47-
$this->assertEquals($extracted_description, $tag->getDescription());
46+
$this->assertEquals($extractedType, $tag->getTypes());
47+
$this->assertEquals($extractedDescription, $tag->getDescription());
4848
}
4949

5050
/**

0 commit comments

Comments
 (0)