Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ phpunit.log
/.phpunit*
/coverage
/.tools
.papline/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow other files'/folders' structure /.papline

7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
"symfony/cache": "^5.4",
"laravel/pint": "^1.21",
"pestphp/pest": "^4.1.2",
"carthage-software/mago": "1.1.0"
"carthage-software/mago": "1.1.0",
"phpstan/phpstan": "^2.1",
"infection/infection": "^0.32.6"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unnecessary packages;
phpstan is already imported via laravel/pint which imports larastan/larastan which imports phpstan.

},
"autoload": {
"files": [
Expand Down Expand Up @@ -82,7 +84,8 @@
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true,
"carthage-software/mago": true
"carthage-software/mago": true,
"infection/extension-installer": true
}
}
}
16 changes: 16 additions & 0 deletions infection.json5
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required; remove.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "vendor/infection/infection/resources/schema.json",
"source": {
"directories": ["src"]
},
"timeout": 30,
"logs": {
"text": ".papline/infection.log",
"summary": ".papline/infection-summary.log"
},
"mutators": {
"@default": true
},
"testFramework": "phpunit",
"testFrameworkOptions": "--filter=\"(InviteTest|MemberTest)\""
}
15 changes: 5 additions & 10 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
<?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"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="tests/bootstrap.php"
cacheResultFile=".phpunit.cache/test-results"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
forceCoversAnnotation="false"
beStrictAboutCoversAnnotation="false"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
verbose="true">
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory suffix="Test.php">tests</directory>
<!--<file>tests/DiscordTest.php</file>-->
</testsuite>
</testsuites>

<coverage cacheDirectory=".phpunit.cache/code-coverage"
processUncoveredFiles="true">
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
</source>
</phpunit>
Loading