Skip to content

Commit 5b0f6d8

Browse files
committed
[TASK] Update phpunit rules
1 parent 61f34c5 commit 5b0f6d8

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

src/CsFixerConfig.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,24 @@ class CsFixerConfig extends Config implements CsFixerConfigInterface
8787
'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'],
8888
'php_unit_construct' => ['assertions' => ['assertEquals', 'assertSame', 'assertNotEquals', 'assertNotSame']],
8989
'php_unit_mock_short_will_return' => true,
90-
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
90+
'php_unit_test_case_static_method_calls' => ['call_type' => 'self',
91+
'methods' => [
92+
'any' => 'this',
93+
'atLeast' => 'this',
94+
'atLeastOnce' => 'this',
95+
'atMost' => 'this',
96+
'exactly' => 'this',
97+
'never' => 'this',
98+
'onConsecutiveCalls' => 'this',
99+
'once' => 'this',
100+
'returnArgument' => 'this',
101+
'returnCallback' => 'this',
102+
'returnSelf' => 'this',
103+
'returnValue' => 'this',
104+
'returnValueMap' => 'this',
105+
'throwException' => 'this',
106+
],
107+
],
91108
'phpdoc_no_access' => true,
92109
'phpdoc_no_empty_return' => true,
93110
'phpdoc_no_package' => true,

0 commit comments

Comments
 (0)