Skip to content

Commit 5db2b57

Browse files
committed
fix: keep layout tests in one file and suppress phpmd warning
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 619dc0e commit 5db2b57

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

phpmd.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<exclude name="CyclomaticComplexity"/>
1414
<exclude name="NPathComplexity"/>
1515
</rule>
16-
<exclude-pattern>.*tests/.*Test\.php$</exclude-pattern>
1716
<rule ref="rulesets/design.xml"/>
1817
<rule ref="rulesets/naming.xml">
1918
<exclude name="ShortVariable"/>

tests/Unit/Layout/LinearLayoutEngineTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
use ReflectionMethod;
1616
use ReflectionProperty;
1717

18+
/**
19+
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
20+
*/
1821
final class LinearLayoutEngineTest extends TestCase
1922
{
2023
public function testLayoutSupportsNestedNodesImagesAndStyles(): void

0 commit comments

Comments
 (0)