From e04f25a77b826c18bd5e5303586721c71b15a382 Mon Sep 17 00:00:00 2001 From: Vasil Rangelov Date: Sun, 4 Nov 2012 23:34:25 +0200 Subject: [PATCH] Shortened some long variable names in the test suite, as advised by PHPMD's default settings. --- .../Reflection/DocBlock/Tag/ParamTagTest.php | 18 +++++++++--------- .../Reflection/DocBlock/Tag/ReturnTagTest.php | 12 ++++++------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/phpDocumentor/Reflection/DocBlock/Tag/ParamTagTest.php b/tests/phpDocumentor/Reflection/DocBlock/Tag/ParamTagTest.php index 814c699..f24a771 100644 --- a/tests/phpDocumentor/Reflection/DocBlock/Tag/ParamTagTest.php +++ b/tests/phpDocumentor/Reflection/DocBlock/Tag/ParamTagTest.php @@ -28,9 +28,9 @@ class ParamTagTest extends \PHPUnit_Framework_TestCase * * @param string $type * @param string $content - * @param string $extracted_type - * @param string $extracted_variable_name - * @param string $extracted_description + * @param string $extractedType + * @param string $extractedVarName + * @param string $extractedDescription * * @covers \phpDocumentor\Reflection\DocBlock\Tag\ParamTag::__construct * @@ -41,15 +41,15 @@ class ParamTagTest extends \PHPUnit_Framework_TestCase public function testConstructorParsesInputsIntoCorrectFields( $type, $content, - $extracted_type, - $extracted_variable_name, - $extracted_description + $extractedType, + $extractedVarName, + $extractedDescription ) { $tag = new ParamTag($type, $content); - $this->assertEquals($extracted_type, $tag->getTypes()); - $this->assertEquals($extracted_variable_name, $tag->getVariableName()); - $this->assertEquals($extracted_description, $tag->getDescription()); + $this->assertEquals($extractedType, $tag->getTypes()); + $this->assertEquals($extractedVarName, $tag->getVariableName()); + $this->assertEquals($extractedDescription, $tag->getDescription()); } /** diff --git a/tests/phpDocumentor/Reflection/DocBlock/Tag/ReturnTagTest.php b/tests/phpDocumentor/Reflection/DocBlock/Tag/ReturnTagTest.php index b8794cd..74512e6 100644 --- a/tests/phpDocumentor/Reflection/DocBlock/Tag/ReturnTagTest.php +++ b/tests/phpDocumentor/Reflection/DocBlock/Tag/ReturnTagTest.php @@ -27,8 +27,8 @@ class ReturnTagTest extends ParamTagTest * understand the Return DocBlock. * * @param string $content - * @param string $extracted_type - * @param string $extracted_description + * @param string $extractedType + * @param string $extractedDescription * * @covers \phpDocumentor\Reflection\DocBlock\Tag\ReturnTag::__construct * @@ -38,13 +38,13 @@ class ReturnTagTest extends ParamTagTest */ public function testConstructorParsesInputsIntoCorrectFields( $content, - $extracted_type, - $extracted_description + $extractedType, + $extractedDescription ) { $tag = new ReturnTag('return', $content); - $this->assertEquals($extracted_type, $tag->getTypes()); - $this->assertEquals($extracted_description, $tag->getDescription()); + $this->assertEquals($extractedType, $tag->getTypes()); + $this->assertEquals($extractedDescription, $tag->getDescription()); } /**