Skip to content

Commit

Permalink
GetIgnorePatternsTest: update ruleset fixture to include type attri…
Browse files Browse the repository at this point in the history
…butes
  • Loading branch information
jrfnl committed Nov 22, 2024
1 parent 27d759a commit 7c9314a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/Core/Ruleset/GetIgnorePatternsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function dataGetIgnorePatterns()
'expected' => [
'PSR1.Classes.ClassDeclaration' => [
'./src/*/file.php' => 'absolute',
'./bin/' => 'absolute',
'./bin/' => 'relative',
],
'Generic.Formatting.SpaceAfterCast' => [
'./src/*/test\\.php$' => 'absolute',
Expand All @@ -92,7 +92,7 @@ public static function dataGetIgnorePatterns()
'listener' => 'PSR1.Classes.ClassDeclaration',
'expected' => [
'./src/*/file.php' => 'absolute',
'./bin/' => 'absolute',
'./bin/' => 'relative',
],
],
'Ignore patterns for Generic.Formatting.SpaceAfterCast' => [
Expand Down
4 changes: 2 additions & 2 deletions tests/Core/Ruleset/GetIgnorePatternsTest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<rule ref="PSR1"/>

<rule ref="PSR1.Classes.ClassDeclaration">
<exclude-pattern>./src/*/file.php</exclude-pattern>
<exclude-pattern>./bin/</exclude-pattern>
<exclude-pattern type="absolute">./src/*/file.php</exclude-pattern>
<exclude-pattern type="relative">./bin/</exclude-pattern>
</rule>

<rule ref="Generic.Formatting.SpaceAfterCast">
Expand Down

0 comments on commit 7c9314a

Please sign in to comment.