Skip to content

Commit da5866b

Browse files
authored
Improve tests (#648)
1 parent 1211531 commit da5866b

File tree

60 files changed

+1781
-506
lines changed

Some content is hidden

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

60 files changed

+1781
-506
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/bin/
2-
!/bin/php-scoper
3-
!/bin/check-composer-root-version.php
42
!/bin/check-composer-root-version.php
3+
!/bin/infection.sh
4+
!/bin/php-scoper
55
!/bin/root-version.php
66
/.box_dump/
77
/box.json
@@ -15,7 +15,8 @@
1515
/fixtures/set030/composer.lock
1616
/fixtures/set030/expected-output
1717
/fixtures/set031-extension-symbol/expected-output
18-
.phpunit*
18+
/infection-log.txt
19+
/.phpunit*
1920
/vendor/
2021
/vendor-bin/*/vendor/
2122
/vendor-bin/*/bin/

bin/infection.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
#
4+
# Utility shell to execute the (non scoped) infection more easily. Indeed the
5+
# the infection location makes it awkward to use.
6+
#
7+
8+
set -Eeuo pipefail
9+
10+
cd fixtures/set020-infection \
11+
&& php vendor/infection/infection/bin/infection \
12+
--only-covered \
13+
$@

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"symfony/filesystem": "^5.2",
3030
"symfony/finder": "^5.2",
3131
"symfony/polyfill-php80": "^1.23",
32+
"symfony/polyfill-php81": "^1.24",
3233
"thecodingmachine/safe": "^1.3"
3334
},
3435
"require-dev": {

composer.lock

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

fixtures/set020-infection/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require": {
3-
"infection/infection": "^0.18"
3+
"infection/infection": "^0.26.4"
44
},
55
"config": {
66
"allow-plugins": {

0 commit comments

Comments
 (0)