Skip to content

Commit

Permalink
Suppress warnings of long var names in testcases
Browse files Browse the repository at this point in the history
I Think a shorter variable naming in tests would not only shorten the
code, but also make it harder to understand.
  • Loading branch information
renttek committed Oct 1, 2017
1 parent bab5e31 commit c638fd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class ConfigGeneratorTest extends \PHPUnit\Framework\TestCase
*/
private $configDataMock;

/**
* @SuppressWarnings(PHPMD.LongVariable)
*/
public function setUp()
{
$objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class ConfigGeneratorTest extends TestCase
*/
private $configGeneratorObject;

/**
* @SuppressWarnings(PHPMD.LongVariable)
*/
protected function setUp()
{
/** @var DeploymentConfig|\PHPUnit_Framework_MockObject_MockObject $deployConfig */
Expand Down

0 comments on commit c638fd7

Please sign in to comment.