Skip to content

Commit f22f4a7

Browse files
committed
fix infection version for accept phpunit 10.1.1 config (source tag replace coverage tag)
1 parent 5eca1e4 commit f22f4a7

File tree

3 files changed

+32
-22
lines changed

3 files changed

+32
-22
lines changed

.github/workflows/infection.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323

2424
- name: Infection
2525
run: |
26-
wget -q https://github.com/infection/infection/releases/download/0.26.18/infection.phar
27-
wget -q https://github.com/infection/infection/releases/download/0.26.18/infection.phar.asc
26+
wget -q https://github.com/infection/infection/releases/download/0.27.0/infection.phar
27+
wget -q https://github.com/infection/infection/releases/download/0.27.0/infection.phar.asc
2828
chmod +x infection.phar
2929
./infection.phar
3030

phpunit.xml

+29-19
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
1-
<?xml version="1.0"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
5-
backupGlobals="true"
6-
colors="false"
7-
processIsolation="false"
8-
stopOnError="false"
9-
stopOnFailure="false"
10-
stopOnIncomplete="false"
11-
stopOnSkipped="false"
12-
stopOnRisky="false"
13-
timeoutForSmallTests="1"
14-
timeoutForMediumTests="10"
15-
timeoutForLargeTests="60"
16-
cacheDirectory=".phpunit.cache"
17-
backupStaticProperties="false"
18-
requireCoverageMetadata="false">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
4+
backupGlobals="true"
5+
colors="false"
6+
processIsolation="false"
7+
stopOnError="false"
8+
stopOnFailure="false"
9+
stopOnIncomplete="false"
10+
stopOnSkipped="false"
11+
stopOnRisky="false"
12+
timeoutForSmallTests="1"
13+
timeoutForMediumTests="10"
14+
timeoutForLargeTests="60"
15+
cacheDirectory=".phpunit.cache"
16+
backupStaticProperties="false"
17+
requireCoverageMetadata="false"
18+
bootstrap="vendor/autoload.php"
19+
executionOrder="depends,defects"
20+
beStrictAboutCoverageMetadata="true"
21+
beStrictAboutOutputDuringTests="true"
22+
failOnRisky="true"
23+
failOnWarning="true">
1924
<testsuites>
2025
<testsuite name="Functional tests">
21-
<directory>tests/functional/</directory>
26+
<directory>tests/functional</directory>
2227
</testsuite>
2328
</testsuites>
29+
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
30+
<include>
31+
<directory>src</directory>
32+
</include>
33+
</source>
2434
<php>
2535
<ini name="allow_url_include" value="1" />
2636
</php>

src/Capacity/Create.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ final class Create implements CapacityInterface
8080

8181
public function applies(array $config): bool
8282
{
83-
if(!isset($config['api_type'])) {
83+
if (!isset($config['api_type'])) {
8484
throw new InvalidConfigurationException('Your Sylius API configuration is using some unsupported capacity, check your "api_type" properties to a suitable set.');
8585
}
8686
$endpoints = match ($config['api_type']) {

0 commit comments

Comments
 (0)