Skip to content

Commit cd965fc

Browse files
authored
Merge pull request #14 from jakzal/infection-update
Update infection
2 parents d55694c + cb64a35 commit cd965fc

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

Diff for: Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ deptrac: tools/deptrac
3838
.PHONY: deptrac
3939

4040
infection: tools/infection tools/infection.pubkey
41-
phpdbg -qrr ./tools/infection --no-interaction --formatter=progress --min-msi=91 --min-covered-msi=91 --only-covered --ansi
41+
phpdbg -qrr ./tools/infection --no-interaction --formatter=progress --min-msi=95 --min-covered-msi=95 --only-covered --ansi
4242
.PHONY: infection
4343

4444
phpunit: tools/phpunit
@@ -83,10 +83,10 @@ tools/deptrac:
8383
curl -Ls http://get.sensiolabs.de/deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
8484

8585
tools/infection: tools/infection.pubkey
86-
curl -Ls https://github.com/infection/infection/releases/download/0.8.1/infection.phar -o tools/infection && chmod +x tools/infection
86+
curl -Ls https://github.com/infection/infection/releases/download/0.9.0/infection.phar -o tools/infection && chmod +x tools/infection
8787

8888
tools/infection.pubkey:
89-
curl -Ls https://github.com/infection/infection/releases/download/0.8.1/infection.phar.pubkey -o tools/infection.pubkey
89+
curl -Ls https://github.com/infection/infection/releases/download/0.9.0/infection.phar.pubkey -o tools/infection.pubkey
9090

9191
tools/box:
9292
curl -Ls https://github.com/humbug/box/releases/download/3.0.0-beta.0/box.phar -o tools/box && chmod +x tools/box

Diff for: infection.json.dist

+12
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,17 @@
77
},
88
"logs": {
99
"text": "build/infection-log.txt"
10+
},
11+
"mutators": {
12+
"@default": true,
13+
"IdenticalEqual": false,
14+
"NotIdenticalNotEqual": false,
15+
"ProtectedVisibility": {
16+
"ignore": [
17+
"Zalas\\Injector\\PHPUnit\\Symfony\\TestCase\\SymfonyKernel::bootKernel",
18+
"Zalas\\Injector\\PHPUnit\\Symfony\\TestCase\\SymfonyKernel::createKernel",
19+
"Zalas\\Injector\\PHPUnit\\Symfony\\TestCase\\SymfonyKernel::getKernelClass"
20+
]
21+
}
1022
}
1123
}

Diff for: src/Symfony/TestCase/SymfonyKernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected static function getKernelClass(array $options = []): string
5151
*/
5252
protected static function ensureKernelShutdown(): void
5353
{
54-
if (null !== static::$kernel) {
54+
if (static::$kernel instanceof KernelInterface) {
5555
$container = static::$kernel->getContainer();
5656
static::$kernel->shutdown();
5757
if ($container instanceof ResettableContainerInterface) {

0 commit comments

Comments
 (0)