Skip to content

Commit 5079587

Browse files
committed
Add behat specific rules
1 parent 75f2c12 commit 5079587

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

ProjektMOTORCodingStandard/ruleset.xml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,11 @@
7070

7171
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
7272
<properties>
73-
<property
74-
name="rootNamespaces"
75-
type="array"
76-
value="
77-
tests=>App\Tests,
78-
src=>App,
79-
"
80-
/>
73+
<property name="rootNamespaces" type="array">
74+
<element key="src" value="App"/>
75+
<element key="tests" value="App\Tests"/>
76+
<element key="tests/features/bootstrap" value="App\Tests\Behat"/>
77+
</property>
8178
<property name="ignoredNamespaces" type="array" value="DoctrineMigrations"/>
8279
</properties>
8380
</rule>
@@ -134,6 +131,7 @@
134131
<exclude-pattern>./public/index.php</exclude-pattern>
135132
<exclude-pattern>./config/bundles.php</exclude-pattern>
136133
<exclude-pattern>./config/bootstrap.php</exclude-pattern>
134+
<exclude-pattern>./tests/features/bootstrap/bootstrap.php</exclude-pattern>
137135

138136
<file>bin/</file>
139137
<file>config/</file>

0 commit comments

Comments
 (0)