Skip to content

Commit df02326

Browse files
authored
Merge pull request #9 from infection/feature/new-adapter
Upgrade to infection/abstract-testframework-adapter 0.5.0
2 parents eedfb2e + 337b07d commit df02326

61 files changed

Lines changed: 40 additions & 4753 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
!/.tools/.gitkeep
12
.phpunit.result.cache
23
/.composer/
34
/.idea
45
/.php_cs.cache
6+
/.tools/
57
/vendor/
68
infection.log

.tools/.gitkeep

Whitespace-only changes.

Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,17 @@ PSALM_ARGS=--show-info=false
2828
COMPOSER=$(PHP) $(shell which composer)
2929

3030
# Infection
31-
INFECTION=vendor/bin/infection
32-
MIN_MSI=52.212389380531
33-
MIN_COVERED_MSI=95
31+
INFECTION=./.tools/infection.phar
32+
INFECTION_URL="https://github.com/infection/infection/releases/download/0.24.0/infection.phar"
33+
MIN_MSI=57
34+
MIN_COVERED_MSI=97
3435
INFECTION_ARGS=--min-msi=$(MIN_MSI) --min-covered-msi=$(MIN_COVERED_MSI) --threads=$(JOBS) --log-verbosity=none --no-interaction --no-progress
3536

3637
all: test
3738

3839
cs:
3940
$(PHP_CS_FIXER) fix $(PHP_CS_FIXER_ARGS) --dry-run
40-
LC_ALL=C sort -c -u .gitignore
41+
LC_ALL=C sort -u .gitignore -o .gitignore
4142

4243
phpstan:
4344
$(PHPSTAN) $(PHPSTAN_ARGS) --no-progress
@@ -50,7 +51,7 @@ static-analyze: phpstan psalm
5051
test-unit:
5152
$(PHPUNIT) $(PHPUNIT_ARGS)
5253

53-
infection:
54+
infection: $(INFECTION)
5455
$(INFECTION) $(INFECTION_ARGS)
5556

5657
##############################################################
@@ -98,3 +99,8 @@ composer.lock: composer.json
9899

99100
build/cache:
100101
mkdir -p build/cache
102+
103+
$(INFECTION): Makefile
104+
wget -q $(INFECTION_URL) --output-document=$(INFECTION)
105+
chmod a+x $(INFECTION)
106+
touch $@

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"require": {
2929
"php": "^7.4 || ^8.0",
30-
"infection/abstract-testframework-adapter": "^0.3.1",
30+
"infection/abstract-testframework-adapter": "^0.5.0",
3131
"infection/include-interceptor": "^0.2.3",
3232
"symfony/filesystem": "^3.4.29 || ^4.0 || ^5.0",
3333
"symfony/process": "^3.4.29 || ^4.0 || ^5.0",
@@ -40,7 +40,6 @@
4040
},
4141
"require-dev": {
4242
"friendsofphp/php-cs-fixer": "^2.17",
43-
"infection/infection": "^0.20.2",
4443
"php-coveralls/php-coveralls": "^2.4",
4544
"phpstan/extension-installer": "^1.1",
4645
"phpstan/phpstan": "^0.12.66",

0 commit comments

Comments
 (0)