Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit c638fd7

Browse files
committed
Suppress warnings of long var names in testcases
I Think a shorter variable naming in tests would not only shorten the code, but also make it harder to understand.
1 parent bab5e31 commit c638fd7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

setup/src/Magento/Setup/Test/Unit/Model/ConfigGeneratorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class ConfigGeneratorTest extends \PHPUnit\Framework\TestCase
2929
*/
3030
private $configDataMock;
3131

32+
/**
33+
* @SuppressWarnings(PHPMD.LongVariable)
34+
*/
3235
public function setUp()
3336
{
3437
$objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);

setup/src/Magento/Setup/Test/Unit/Module/ConfigGeneratorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ class ConfigGeneratorTest extends TestCase
2323
*/
2424
private $configGeneratorObject;
2525

26+
/**
27+
* @SuppressWarnings(PHPMD.LongVariable)
28+
*/
2629
protected function setUp()
2730
{
2831
/** @var DeploymentConfig|\PHPUnit_Framework_MockObject_MockObject $deployConfig */

0 commit comments

Comments
 (0)