Skip to content

Commit

Permalink
GetIncludePatternsTest: update ruleset fixture to include type attr…
Browse files Browse the repository at this point in the history
…ibutes
  • Loading branch information
jrfnl committed Nov 22, 2024
1 parent 2873597 commit 7a8560e
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/GetIncludePatternsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function dataGetIncludePatterns()
'expected' => [
'PSR1.Classes.ClassDeclaration' => [
'./src/*/file.php' => 'absolute',
'./bin/' => 'absolute',
'./bin/' => 'relative',
],
'Generic.Formatting.SpaceAfterCast' => [
'./src/*/test\\.php$' => 'absolute',
Expand All @@ -89,7 +89,7 @@ public static function dataGetIncludePatterns()
'listener' => 'PSR1.Classes.ClassDeclaration',
'expected' => [
'./src/*/file.php' => 'absolute',
'./bin/' => 'absolute',
'./bin/' => 'relative',
],
],
'Include patterns for Generic.Formatting.SpaceAfterCast' => [
Expand Down
4 changes: 2 additions & 2 deletions tests/Core/Ruleset/GetIncludePatternsTest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<rule ref="PSR1"/>

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

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

0 comments on commit 7a8560e

Please sign in to comment.