Skip to content

Commit 46d98b4

Browse files
authored
wip
1 parent ff6cd4d commit 46d98b4

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

phpunit.xml.dist

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5+
backupGlobals="false"
6+
backupStaticAttributes="false"
7+
bootstrap="vendor/autoload.php"
8+
colors="true"
9+
convertErrorsToExceptions="true"
10+
convertNoticesToExceptions="true"
11+
convertWarningsToExceptions="true"
12+
processIsolation="false"
13+
stopOnFailure="false"
14+
executionOrder="random"
15+
failOnWarning="true"
16+
failOnRisky="true"
17+
failOnEmptyTestSuite="true"
18+
beStrictAboutOutputDuringTests="true"
19+
verbose="true"
20+
>
21+
<testsuites>
22+
<testsuite name="Package Tests">
23+
<directory suffix="Test.php">./tests</directory>
24+
</testsuite>
25+
</testsuites>
26+
<coverage>
27+
<include>
28+
<directory suffix=".php">./src</directory>
29+
</include>
30+
<report>
31+
<html outputDirectory="build/coverage"/>
32+
<text outputFile="build/coverage.txt"/>
33+
<clover outputFile="build/logs/clover.xml"/>
34+
</report>
35+
</coverage>
36+
<logging>
37+
<junit outputFile="build/report.junit.xml"/>
38+
</logging>
39+
<php>
40+
<env name="APP_ENV" value="testing"/>
41+
<env name="BCRYPT_ROUNDS" value="4"/>
42+
<env name="CACHE_DRIVER" value="array"/>
43+
<env name="DB_CONNECTION" value="sqlite"/>
44+
<env name="DB_DATABASE" value=":memory:"/>
45+
</php>
46+
</phpunit>

pint.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"preset": "laravel",
3+
"rules": {
4+
"simplified_null_return": true,
5+
"braces": {
6+
"position_after_anonymous_constructs": "same",
7+
"position_after_functions_and_oop_constructs": "same"
8+
},
9+
"new_with_braces": {
10+
"anonymous_class": false,
11+
"named_class": false
12+
},
13+
"curly_braces_position": {
14+
"anonymous_classes_opening_brace": "same_line",
15+
"functions_opening_brace": "same_line",
16+
"allow_single_line_empty_anonymous_classes": true,
17+
"allow_single_line_anonymous_functions": true
18+
},
19+
"phpdoc_types": {
20+
"groups": [
21+
"simple"
22+
]
23+
},
24+
"no_useless_else": true,
25+
"not_operator_with_successor_space": false
26+
}
27+
}

0 commit comments

Comments
 (0)