Skip to content

Commit fd08652

Browse files
committed
Cover untested code path
1 parent a6700d4 commit fd08652

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Core/Config/SniffsExcludeArgsTest.php

+13
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ public static function dataInvalidSniffs()
136136
'suggestion' => 'Standard.Category.Sniff',
137137
];
138138

139+
// Too many dots
140+
$data[$argument.'; error-code'] = [
141+
'argument' => $argument,
142+
'value' => 'Standard.Category.Sniff.Code.Extra',
143+
'errors' => [
144+
[
145+
'Standard.Category.Sniff.Code.Extra',
146+
'Too many dots.',
147+
],
148+
],
149+
'suggestion' => 'Standard.Category.Sniff',
150+
];
151+
139152
// All errors are reported in one go.
140153
$data[$argument.'; two errors'] = [
141154
'argument' => $argument,

0 commit comments

Comments
 (0)