Skip to content

Commit

Permalink
Simplify repo
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed May 18, 2024
1 parent 80bee40 commit 0fff92d
Show file tree
Hide file tree
Showing 10 changed files with 72 additions and 125 deletions.
10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
vendor/
.phpunit.result.cache
.phpunit.cache
composer.lock
.php_cs.cache
infection.log
.php-cs-fixer.cache
/vendor
/composer.lock
/.phpunit.cache
27 changes: 0 additions & 27 deletions .php-cs-fixer.dist.php

This file was deleted.

58 changes: 13 additions & 45 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,18 @@
],
"require": {
"php": "^8.1",
"illuminate/collections": "^9.0 || ^10.0 || ^11.0",
"illuminate/contracts": "^9.0 || ^10.0 || ^11.0",
"illuminate/log": "^9.0 || ^10.0 || ^11.0",
"illuminate/support": "^9.0 || ^10.0 || ^11.0",
"phpunit/phpunit": "^9.0 || ^10.0 || ^11.0",
"illuminate/collections": "^10.0 || ^11.0",
"illuminate/contracts": "^10.0 || ^11.0",
"illuminate/log": "^10.0 || ^11.0",
"illuminate/support": "^10.0 || ^11.0",
"phpunit/phpunit": "^10.0 || ^11.0",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"symfony/var-dumper": "^6.0 || ^7.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
"illuminate/config": "^9.0 || ^10.0 || ^11.0",
"illuminate/container": "^9.0 || ^10.0 || ^11.0",
"timacdonald/callable-fake": "^1.5"
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
"illuminate/config": "^10.0 || ^11.0",
"illuminate/container": "^10.0 || ^11.0",
"timacdonald/callable-fake": "^1.0"
},
"autoload": {
"psr-4": {
Expand All @@ -49,34 +41,10 @@
"Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"prefer-stable": true,
"scripts": {
"bin": "echo 'bin not installed'",
"post-install-cmd": [
"@composer bin all install --ansi"
],
"post-update-cmd": [
"@composer bin all update --ansi"
],
"fix": [
"clear",
"./vendor/bin/php-cs-fixer fix"
],
"lint": [
"clear",
"./vendor/bin/php-cs-fixer fix --dry-run",
"./vendor/bin/phpstan analyse"
],
"test": [
"clear",
"./vendor/bin/phpunit",
"./vendor/bin/infection --threads=8"
]
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"support": {
"issues": "https://github.com/timacdonald/log-fake/issues",
"source": "https://github.com/timacdonald/log-fake/releases/latest",
"docs": "https://github.com/timacdonald/log-fake/blob/master/readme.md"
}
"minimum-stability": "stable",
"prefer-stable": true
}
17 changes: 0 additions & 17 deletions infection.json.dist

This file was deleted.

12 changes: 12 additions & 0 deletions infection.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "vendor/infection/infection/resources/schema.json",
"source": {
"directories": [
"src"
]
},
"mutators": {
"@default": true
},
"minMsi": 100
}
3 changes: 0 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ parameters:
paths:
- src
- tests
includes:
- vendor-bin/dev/vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor-bin/dev/vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
22 changes: 22 additions & 0 deletions phpunit.10.xml
Original file line number Diff line number Diff line change
@@ -0,0 +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/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
beStrictAboutOutputDuringTests="true"
failOnNotice="true"
failOnRisky="true"
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>
</phpunit>
13 changes: 0 additions & 13 deletions phpunit.9.xml.dist

This file was deleted.

22 changes: 22 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +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/11.1/phpunit.xsd"
beStrictAboutOutputDuringTests="true"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
failOnNotice="true"
failOnRisky="true"
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>
</phpunit>
13 changes: 0 additions & 13 deletions phpunit.xml.dist

This file was deleted.

0 comments on commit 0fff92d

Please sign in to comment.