Skip to content

Commit 4dd7a9d

Browse files
authored
Merge pull request #172 from DesLynx/master
Fixes deprecated JWT libraries + bump phpunit to ^10.5
2 parents d19f310 + 0fd272c commit 4dd7a9d

File tree

4 files changed

+34
-32
lines changed

4 files changed

+34
-32
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ composer.lock
44
docs
55
vendor
66
.phpunit.result.cache
7+
.phpunit.cache

composer.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,18 @@
2121
"require": {
2222
"php": "^8.1",
2323
"ext-curl": "*",
24-
"lib-curl": ">=7.46.0",
25-
"ext-openssl": "*",
26-
"lib-openssl": ">=1.0.2.5",
24+
"ext-intl": "*",
2725
"ext-json": "*",
26+
"ext-openssl": "*",
2827
"ext-xml": "*",
29-
"ext-intl": "*",
30-
"web-token/jwt-signature-algorithm-ecdsa": "^3.0",
31-
"web-token/jwt-key-mgmt": "^3.0"
28+
"lib-curl": ">=7.46.0",
29+
"lib-openssl": ">=1.0.2.5",
30+
"web-token/jwt-library": "^3.0"
3231
},
3332
"require-dev": {
3433
"ext-xdebug": "*",
3534
"php-coveralls/php-coveralls": "^2.0",
36-
"phpunit/phpunit": "^8.4",
35+
"phpunit/phpunit": "^10.5",
3736
"squizlabs/php_codesniffer": "^3.4"
3837
},
3938
"autoload": {

phpunit.xml.dist

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
bootstrap="vendor/autoload.php"
34
backupGlobals="false"
4-
backupStaticAttributes="false"
55
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
106
processIsolation="false"
11-
stopOnFailure="false">
12-
<testsuites>
13-
<testsuite name="Pushok Test Suite">
14-
<directory>tests</directory>
15-
</testsuite>
16-
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
22-
<logging>
23-
<log type="tap" target="build/report.tap"/>
24-
<log type="junit" target="build/report.junit.xml"/>
25-
<log type="coverage-html" target="build/coverage"/>
26-
<log type="coverage-text" target="build/coverage.txt"/>
27-
<log type="coverage-clover" target="build/logs/clover.xml"/>
28-
</logging>
7+
stopOnFailure="false"
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
9+
cacheDirectory=".phpunit.cache"
10+
backupStaticProperties="false">
11+
<coverage>
12+
<report>
13+
<clover outputFile="build/logs/clover.xml"/>
14+
<html outputDirectory="build/coverage"/>
15+
<text outputFile="build/coverage.txt"/>
16+
</report>
17+
</coverage>
18+
<testsuites>
19+
<testsuite name="Pushok Test Suite">
20+
<directory>tests</directory>
21+
</testsuite>
22+
</testsuites>
23+
<logging>
24+
<junit outputFile="build/report.junit.xml"/>
25+
</logging>
26+
<source>
27+
<include>
28+
<directory suffix=".php">src/</directory>
29+
</include>
30+
</source>
2931
</phpunit>

tests/NotificationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Pushok\Notification;
1717
use Pushok\Payload;
1818

19-
class MessageTest extends TestCase
19+
class NotificationTest extends TestCase
2020
{
2121
public function testGetDeviceToken()
2222
{

0 commit comments

Comments
 (0)