Skip to content

Commit 3471bee

Browse files
LuborRodRodion Liuborets
andauthored
SDK-1607 Update PhpUnit (#266)
* SDK-1607 Update PhpUnit * SDK-1607 Remove 7.1, 7.2, 7.3 from github actions Co-authored-by: Rodion Liuborets <[email protected]>
1 parent c05ee1e commit 3471bee

File tree

4 files changed

+27
-30
lines changed

4 files changed

+27
-30
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
strategy:
4343
fail-fast: false
4444
matrix:
45-
php-version: [ 7.4, 7.3, 7.2, 7.1 ]
45+
php-version: [ 7.4 ]
4646

4747
steps:
4848
- uses: actions/checkout@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ composer.lock
66
phpcs.xml
77

88
.phpunit.result.cache
9+
phpunit.xml.bak
910

1011
.php_cs.cache
1112

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.3",
29+
"phpunit/phpunit": "^9.5.13",
3030
"squizlabs/php_codesniffer": "^3.4",
3131
"friendsofphp/php-cs-fixer": "^2.15",
3232
"brainmaestro/composer-git-hooks": "^2.8",

phpunit.xml

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<phpunit colors="true"
3-
convertErrorsToExceptions="true"
4-
convertNoticesToExceptions="false"
5-
convertWarningsToExceptions="false"
6-
bootstrap="tests/bootstrap.php"
7-
stopOnFailure="false">
8-
<php>
9-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[total]=1"/>
10-
</php>
11-
<testsuites>
12-
<testsuite name="Yoti Test Suite">
13-
<directory>tests/</directory>
14-
</testsuite>
15-
</testsuites>
16-
<filter>
17-
<whitelist processUncoveredFilesFromWhitelist="true">
18-
<directory suffix=".php">src</directory>
19-
<exclude>
20-
<directory>src/Protobuf</directory>
21-
</exclude>
22-
</whitelist>
23-
</filter>
24-
<logging>
25-
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
26-
</logging>
27-
<listeners>
28-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
29-
</listeners>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="false" convertWarningsToExceptions="false" bootstrap="tests/bootstrap.php" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage processUncoveredFiles="true">
4+
<include>
5+
<directory suffix=".php">src</directory>
6+
</include>
7+
<exclude>
8+
<directory>src/Protobuf</directory>
9+
</exclude>
10+
<report>
11+
<text outputFile="php://stdout" showUncoveredFiles="true"/>
12+
</report>
13+
</coverage>
14+
<php>
15+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[total]=1"/>
16+
</php>
17+
<testsuites>
18+
<testsuite name="Yoti Test Suite">
19+
<directory>tests/</directory>
20+
</testsuite>
21+
</testsuites>
22+
<logging/>
23+
<listeners>
24+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
25+
</listeners>
3026
</phpunit>

0 commit comments

Comments
 (0)