chore: group PHP-related templates

This commit is contained in:
Oliver Davies 2023-02-02 00:40:42 +00:00
parent b1da05e9cf
commit 4e861685d9
5 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
[[ -f composer.json && ! -d vendor ]] && composer install
eval "$@"

View file

@ -0,0 +1,7 @@
<?xml version="1.0"?>
<ruleset name="{{ name }} coding standards">
<description>PHPCS configuration file for {{ name }}.</description>
<file>src</file>
<arg value="np"/>
<rule ref="{{ php.phpcs.standard }}"/>
</ruleset>

View file

@ -0,0 +1,6 @@
parameters:
level: {{ php.phpstan.level }}
paths:
{% for path in php.phpstan.paths | default(["src"]) -%}
- {{ path }}
{% endfor %}

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResultFile=".phpunit.cache/test-results"
executionOrder="depends,defects"
forceCoversAnnotation="false"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="false"
beStrictAboutTodoAnnotatedTests="true"
convertDeprecationsToExceptions="true"
failOnRisky="true"
failOnWarning="true"
verbose="true">
<testsuites>
<testsuite name="{{ name }}">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>