Skip to content

Commit 45d97fa

Browse files
Merge pull request #10 from codenamephp/update/phpunit10
PHPUnit10
2 parents c99e346 + 8a41001 commit 45d97fa

File tree

12 files changed

+48523
-53093
lines changed

12 files changed

+48523
-53093
lines changed

.idea/deployer.command.iml

Lines changed: 11 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@
3535
"sort-packages": true
3636
},
3737
"scripts": {
38+
"phive-update": "XDEBUG_MODE=off phive update && git add tools/* phive.xml && git commit -m 'Updated phive dependencies'",
3839
"phpunit": "XDEBUG_MODE=coverage tools/phpunit.phar -c test/phpunit.dist.xml test/",
3940
"psalm": "XDEBUG_MODE=off tools/psalm --threads=10 --long-progress",
4041
"composer-unused": "XDEBUG_MODE=off tools/composer-unused --no-progress --no-interaction",
4142
"composer-require-checker": "XDEBUG_MODE=off tools/composer-require-checker --no-interaction",
4243
"infection": "XDEBUG_MODE=coverage tools/infection --min-msi=100 --min-covered-msi=100 --threads=4 --no-progress --show-mutations",
4344
"ci-all": [
45+
"composer validate",
4446
"@phpunit",
4547
"@psalm",
4648
"@composer-unused",
@@ -49,6 +51,7 @@
4951
]
5052
},
5153
"scripts-descriptions": {
54+
"phive-update": "Runs a phive update and commits all tools and the phive.xml so PHPStorm won't run code formatting on the phars",
5255
"phpunit": "Runs phpunit tests",
5356
"psalm": "Runs psalm static analysis",
5457
"composer-unused": "Checks for unused composer packages",

deployer.phar

Lines changed: 0 additions & 1 deletion
This file was deleted.

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.6'
22

33
services:
44
application:
5-
user: "${UID}:${GID}" #don't run as root by default to prevent permission conflicts
5+
user: "${UID:-1000}:${GID:-1000}" #don't run as root by default to prevent permission conflicts
66
build:
77
context: docker/application
88
args:
@@ -12,6 +12,7 @@ services:
1212
- ./:/app
1313
- $HOME/.phive:/home/application/.phive
1414
- $HOME/.ssh:/home/application/.ssh
15+
- $HOME/.gitconfig:/home/application/.gitconfig
1516
- ${SSH_AUTH_SOCK:-/ssh-agent}:/ssh-agent # Forward local machine SSH key to docker
1617
- /etc/timezone:/etc/timezone:ro
1718
- /etc/localtime:/etc/localtime:ro

phive.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
~ limitations under the License.
1616
-->
1717
<phive xmlns="https://phar.io/phive">
18-
<phar name="phpunit" version="^9.0.1" installed="9.5.21" location="./tools/phpunit.phar" copy="true"/>
19-
<phar name="psalm" version="^4.0" installed="4.25.0" location="./tools/psalm" copy="true"/>
20-
<phar name="composer-unused" version="^0.8" installed="0.8.2" location="./tools/composer-unused" copy="true"/>
21-
<phar name="composer-require-checker" version="^4.0" installed="4.1.0" location="./tools/composer-require-checker" copy="true"/>
22-
<phar name="infection" version="^0.26" installed="0.26.13" location="./tools/infection" copy="true"/>
18+
<phar name="phpunit" version="^10.0" installed="10.0.15" location="./tools/phpunit.phar" copy="true"/>
19+
<phar name="psalm" version="^5.8" installed="5.8.0" location="./tools/psalm" copy="true"/>
20+
<phar name="composer-unused" version="^0.8" installed="0.8.6" location="./tools/composer-unused" copy="true"/>
21+
<phar name="composer-require-checker" version="^4.0" installed="4.5.0" location="./tools/composer-require-checker" copy="true"/>
22+
<phar name="infection" version="^0.26" installed="0.26.19" location="./tools/infection" copy="true"/>
2323
</phive>

test/phpunit.dist.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
~ limitations under the License.
1616
~
1717
-->
18-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="./../vendor/autoload.php"
19-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
18+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
20+
colors="true"
21+
bootstrap="./../vendor/autoload.php"
22+
cacheDirectory="../.cache/phpunit"
23+
>
2024
<coverage>
2125
<include>
2226
<directory suffix=".php">./../src</directory>

tools/composer-require-checker

-11.6 KB
Binary file not shown.

tools/composer-unused

27.3 MB
Binary file not shown.

tools/infection

-10.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)