Skip to content

Commit da1ef60

Browse files
authored
Merge pull request #20 from jakzal/infection-box-update
Update infection and box
2 parents 821a515 + 8900a51 commit da1ef60

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ deptrac: tools/deptrac
4242
.PHONY: deptrac
4343

4444
infection: tools/infection tools/infection.pubkey
45-
phpdbg -qrr ./tools/infection --no-interaction --formatter=progress --min-msi=96 --min-covered-msi=96 --only-covered --ansi
45+
phpdbg -qrr ./tools/infection --no-interaction --formatter=progress --min-msi=100 --min-covered-msi=100 --only-covered --ansi
4646
.PHONY: infection
4747

4848
phpunit: tools/phpunit
@@ -93,13 +93,13 @@ tools/deptrac:
9393
curl -Ls http://get.sensiolabs.de/deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
9494

9595
tools/infection: tools/infection.pubkey
96-
curl -Ls https://github.com/infection/infection/releases/download/0.12.0/infection.phar -o tools/infection && chmod +x tools/infection
96+
curl -Ls https://github.com/infection/infection/releases/download/0.13.2/infection.phar -o tools/infection && chmod +x tools/infection
9797

9898
tools/infection.pubkey:
99-
curl -Ls https://github.com/infection/infection/releases/download/0.12.0/infection.phar.pubkey -o tools/infection.pubkey
99+
curl -Ls https://github.com/infection/infection/releases/download/0.13.2/infection.phar.pubkey -o tools/infection.pubkey
100100

101101
tools/box:
102-
curl -Ls https://github.com/humbug/box/releases/download/3.4.0/box.phar -o tools/box && chmod +x tools/box
102+
curl -Ls https://github.com/humbug/box/releases/download/3.7.3/box.phar -o tools/box && chmod +x tools/box
103103

104104
tests/phar/tools/phpunit:
105105
curl -Ls https://phar.phpunit.de/phpunit-8.phar -o tests/phar/tools/phpunit && chmod +x tests/phar/tools/phpunit

infection.json.dist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,23 @@
1212
"@default": true,
1313
"IdenticalEqual": false,
1414
"NotIdenticalNotEqual": false,
15+
"OneZeroInteger": {
16+
"ignore": [
17+
"Zalas\\Injector\\PHPUnit\\Symfony\\Compiler\\Discovery\\ClassFinder::findClassInFile"
18+
]
19+
},
1520
"ProtectedVisibility": {
1621
"ignore": [
1722
"Zalas\\Injector\\PHPUnit\\Symfony\\TestCase\\SymfonyKernel::bootKernel",
1823
"Zalas\\Injector\\PHPUnit\\Symfony\\TestCase\\SymfonyKernel::createKernel",
1924
"Zalas\\Injector\\PHPUnit\\Symfony\\TestCase\\SymfonyKernel::getKernelClass"
2025
]
26+
},
27+
"ArrayItemRemoval": {
28+
"ignore": [
29+
"Zalas\\Injector\\PHPUnit\\Symfony\\Compiler\\Discovery\\PropertyDiscovery::__construct",
30+
"Zalas\\Injector\\PHPUnit\\TestListener\\ServiceInjectorListener::startTest"
31+
]
2132
}
2233
}
2334
}

tests/Symfony/TestCase/Fixtures/FrameworkBundle/TestKernel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313

1414
class TestKernel extends Kernel
1515
{
16+
public function __construct(string $environment, bool $debug)
17+
{
18+
parent::__construct($environment, $debug);
19+
}
20+
1621
public function registerBundles()
1722
{
1823
return [

tests/Symfony/TestCase/Fixtures/NoFrameworkBundle/TestKernel.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
use Symfony\Component\Config\Loader\LoaderInterface;
77
use Symfony\Component\DependencyInjection\ContainerBuilder;
8-
use Symfony\Component\DependencyInjection\Reference;
98
use Symfony\Component\HttpKernel\Kernel;
109
use Zalas\Injector\PHPUnit\Symfony\Compiler\Discovery\ClassFinder;
1110
use Zalas\Injector\PHPUnit\Symfony\Compiler\Discovery\PropertyDiscovery;
@@ -15,6 +14,11 @@
1514

1615
class TestKernel extends Kernel
1716
{
17+
public function __construct(string $environment, bool $debug)
18+
{
19+
parent::__construct($environment, $debug);
20+
}
21+
1822
public function registerBundles()
1923
{
2024
return [];

0 commit comments

Comments
 (0)