You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before changes. SomeHandlerTest has coupling between objects - 12 (13 is the max default value)
namespaceApp\Tests\functional\Action\Handler\SomeHandler;
use ....;
useApp\Tests\functional\ApiTestCase;
finalclassSomeHandlerTestextendsApiTestCase
{
.... some code here
}
PHPMD reports that there is no violations
Then we want to replace namespace App\Tests\functional to App\Tests\Functional
After changes. No other code changed
namespaceApp\Tests\Functional\Action\Handler\SomeHandler;
use ....;
useApp\Tests\Functional\ApiTestCase;
finalclassSomeHandlerTestextendsApiTestCase
{
.... some code here
}
PHPMD reports:
FILE: /var/www/html/tests/functional/Action/Handler/Player/PersonalBonus/SomeHandlerTest.php
----------------------------------------------------------------------------------------------------------
24 | VIOLATION | The class CheckPersonalBonusHandlerTest has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13.
24 | VIOLATION | The class CheckPersonalBonusHandlerTest has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13.
Current Behavior
Before changes. SomeHandlerTest has coupling between objects - 12 (13 is the max default value)
PHPMD reports that there is no violations
Then we want to replace namespace
App\Tests\functional
toApp\Tests\Functional
After changes. No other code changed
PHPMD reports:
vendor/bin/phpmd /var/www/html/tests/functional/Action/Handler/SomeHandlerTest.php ansi design
On the next run there is no violations
Expected Behavior
Expect no vioalations
Checks before submitting
The text was updated successfully, but these errors were encountered: