Skip to content

Commit

Permalink
tests: use PSR-4
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Mar 16, 2019
1 parent 55e21d9 commit 4b873ae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .phpcs.xml.dist
Expand Up @@ -12,6 +12,19 @@
<rule ref="Nepada">
</rule>

<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<exclude-pattern>*/exceptions.php</exclude-pattern>
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Nepada"/>
<element key="tests" value="NepadaTests"/>
</property>
<property name="extensions" type="array">
<element value="php"/>
<element value="phpt"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="ignoredAnnotationNames" type="array">
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -45,9 +45,9 @@
}
},
"autoload-dev": {
"classmap": [
"tests/"
]
"psr-4": {
"NepadaTests\\": "tests/"
}
},
"extra": {
"branch-alias": {
Expand Down

0 comments on commit 4b873ae

Please sign in to comment.