Skip to content

Commit 7c9314a

Browse files
committed
GetIgnorePatternsTest: update ruleset fixture to include type attributes
1 parent 27d759a commit 7c9314a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Core/Ruleset/GetIgnorePatternsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static function dataGetIgnorePatterns()
7878
'expected' => [
7979
'PSR1.Classes.ClassDeclaration' => [
8080
'./src/*/file.php' => 'absolute',
81-
'./bin/' => 'absolute',
81+
'./bin/' => 'relative',
8282
],
8383
'Generic.Formatting.SpaceAfterCast' => [
8484
'./src/*/test\\.php$' => 'absolute',
@@ -92,7 +92,7 @@ public static function dataGetIgnorePatterns()
9292
'listener' => 'PSR1.Classes.ClassDeclaration',
9393
'expected' => [
9494
'./src/*/file.php' => 'absolute',
95-
'./bin/' => 'absolute',
95+
'./bin/' => 'relative',
9696
],
9797
],
9898
'Ignore patterns for Generic.Formatting.SpaceAfterCast' => [

tests/Core/Ruleset/GetIgnorePatternsTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<rule ref="PSR1"/>
99

1010
<rule ref="PSR1.Classes.ClassDeclaration">
11-
<exclude-pattern>./src/*/file.php</exclude-pattern>
12-
<exclude-pattern>./bin/</exclude-pattern>
11+
<exclude-pattern type="absolute">./src/*/file.php</exclude-pattern>
12+
<exclude-pattern type="relative">./bin/</exclude-pattern>
1313
</rule>
1414

1515
<rule ref="Generic.Formatting.SpaceAfterCast">

0 commit comments

Comments
 (0)