Skip to content
Merged
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
10 changes: 8 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ '8.0', '8.1', '8.2', '8.3' ]
php: [ '8.2', '8.3', '8.4' ]

name: PHP ${{ matrix.php }}

Expand All @@ -40,4 +40,10 @@ jobs:
run: composer install --prefer-dist --no-interaction --no-progress

- name: Run test suite
run: ./vendor/bin/pest
run: ./vendor/bin/pest --parallel

- name: Run mutation tests
run: XDEBUG_MODE=coverage ./vendor/bin/pest --mutate --min=70 --parallel

- name: PHPStan
run: ./vendor/bin/phpstan analyze src --level=6
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ fabric.properties

# Generated files
.phpunit.result.cache
.phpunit.cache

# PHPUnit
/app/phpunit.xml
Expand All @@ -129,4 +130,4 @@ fabric.properties
# Build data
/build/

# End of https://www.toptal.com/developers/gitignore/api/phpstorm,composer,phpunit
# End of https://www.toptal.com/developers/gitignore/api/phpstorm,composer,phpunit
9 changes: 9 additions & 0 deletions .phpstorm.meta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace PHPSTORM_META
{
override(\Psr\Container\ContainerInterface::get(0), map([
'' => '@',
]));

}
15 changes: 10 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,25 @@
"name": "borschphp/container",
"description": "A simple PSR-11 Container implementation.",
"license": "MIT",
"keywords": ["psr", "psr-11", "container"],
"keywords": [
"psr",
"psr-11",
"container"
],
"authors": [
{
"name": "Alexandre DEBUSSCHERE",
"email": "alexandre.debusschere@hey.com"
}
],
"require": {
"php": "^8.0",
"psr/container": "^2"
"php": "^8.2",
"psr/container": "^2.0",
"doctrine/collections": "^2.3"
},
"require-dev": {
"pestphp/pest": "^1.22",
"nikic/php-parser": "^4"
"pestphp/pest": "^3.0",
"phpstan/phpstan": "^2.1"
},
"autoload": {
"psr-4": {
Expand Down
16 changes: 0 additions & 16 deletions infection.json5

This file was deleted.

27 changes: 11 additions & 16 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./app</directory>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
Loading