Skip to content

Commit 859cb0e

Browse files
TheNordDmitriy Fedosov
and
Dmitriy Fedosov
authored
adding support php8 (#18)
Co-authored-by: Dmitriy Fedosov <dfedosov@belkacar.ru>
1 parent 69d0d94 commit 859cb0e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
}
5050
},
5151
"require": {
52-
"php": "^5.6 || ^7.0",
52+
"php": "^7.4 || ^8.0",
5353
"ext-curl": "*",
5454
"ext-json": "*"
5555
},
@@ -59,7 +59,7 @@
5959
"phpdocumentor/phpdocumentor": "^2.9.0",
6060
"phploc/phploc": "^3.0.1",
6161
"phpmd/phpmd": "^2.4.3",
62-
"phpunit/phpunit": "^5.5.4",
62+
"phpunit/phpunit": "^8.0",
6363
"satooshi/php-coveralls": "^1.0.1",
6464
"sebastian/phpcpd": "^2.0.4",
6565
"squizlabs/php_codesniffer": "^3.5",

src/test/php/Gomoob/Pushwoosh/Model/Notification/AndroidTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function testJsonSerialize()
174174
->setVibration(true)
175175
->jsonSerialize();
176176

177-
$this->assertCount(12, $array);
177+
$this->assertCount(13, $array);
178178
$this->assertSame('http://example.com/banner.png', $array['android_banner']);
179179
$this->assertSame(5, $array['android_badges']);
180180
$this->assertSame('http://example.com/image.png', $array['android_custom_icon']);

src/test/php/Gomoob/Pushwoosh/Model/Notification/HuaweiTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function testJsonSerialize()
120120
->setVibration(true)
121121
->jsonSerialize();
122122

123-
$this->assertCount(12, $array);
123+
$this->assertCount(13, $array);
124124
$this->assertSame('http://example.com/banner.png', $array['huawei_android_banner']);
125125
$this->assertSame(5, $array['huawei_android_badges']);
126126
$this->assertSame('http://example.com/image.png', $array['huawei_android_custom_icon']);

src/test/php/Gomoob/Pushwoosh/Model/Notification/IOSTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function testJsonSerialize()
120120
->setTrimContent(true)
121121
->jsonSerialize();
122122

123-
$this->assertCount(7, $array);
123+
$this->assertCount(8, $array);
124124
$this->assertSame(1, $array['apns_trim_content']);
125125
$this->assertSame(5, $array['ios_badges']);
126126
$this->assertSame('1', $array['ios_category_id']);

src/test/php/Gomoob/Pushwoosh/Model/Notification/NotificationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ public function testJsonSerialize()
622622
->jsonSerialize();
623623

624624
// Test the generic properties
625-
$this->assertCount(77, $array);
625+
$this->assertCount(80, $array);
626626
$this->assertSame('now', $array['send_date']);
627627
$this->assertSame('America/New_York', $array['timezone']);
628628
$this->assertTrue($array['ignore_user_timezone']);

0 commit comments

Comments
 (0)