diff --git a/composer.json b/composer.json index 16faa80..4eeb8a0 100644 --- a/composer.json +++ b/composer.json @@ -49,7 +49,7 @@ } }, "require": { - "php": "^5.6 || ^7.0", + "php": "^7.4 || ^8.0", "ext-curl": "*", "ext-json": "*" }, @@ -59,7 +59,7 @@ "phpdocumentor/phpdocumentor": "^2.9.0", "phploc/phploc": "^3.0.1", "phpmd/phpmd": "^2.4.3", - "phpunit/phpunit": "^5.5.4", + "phpunit/phpunit": "^8.0", "satooshi/php-coveralls": "^1.0.1", "sebastian/phpcpd": "^2.0.4", "squizlabs/php_codesniffer": "^3.5", diff --git a/src/test/php/Gomoob/Pushwoosh/Model/Notification/AndroidTest.php b/src/test/php/Gomoob/Pushwoosh/Model/Notification/AndroidTest.php index d97ec31..4078ff7 100644 --- a/src/test/php/Gomoob/Pushwoosh/Model/Notification/AndroidTest.php +++ b/src/test/php/Gomoob/Pushwoosh/Model/Notification/AndroidTest.php @@ -174,7 +174,7 @@ public function testJsonSerialize() ->setVibration(true) ->jsonSerialize(); - $this->assertCount(12, $array); + $this->assertCount(13, $array); $this->assertSame('http://example.com/banner.png', $array['android_banner']); $this->assertSame(5, $array['android_badges']); $this->assertSame('http://example.com/image.png', $array['android_custom_icon']); diff --git a/src/test/php/Gomoob/Pushwoosh/Model/Notification/HuaweiTest.php b/src/test/php/Gomoob/Pushwoosh/Model/Notification/HuaweiTest.php index 217c616..3738724 100644 --- a/src/test/php/Gomoob/Pushwoosh/Model/Notification/HuaweiTest.php +++ b/src/test/php/Gomoob/Pushwoosh/Model/Notification/HuaweiTest.php @@ -120,7 +120,7 @@ public function testJsonSerialize() ->setVibration(true) ->jsonSerialize(); - $this->assertCount(12, $array); + $this->assertCount(13, $array); $this->assertSame('http://example.com/banner.png', $array['huawei_android_banner']); $this->assertSame(5, $array['huawei_android_badges']); $this->assertSame('http://example.com/image.png', $array['huawei_android_custom_icon']); diff --git a/src/test/php/Gomoob/Pushwoosh/Model/Notification/IOSTest.php b/src/test/php/Gomoob/Pushwoosh/Model/Notification/IOSTest.php index 9390a2c..467413f 100644 --- a/src/test/php/Gomoob/Pushwoosh/Model/Notification/IOSTest.php +++ b/src/test/php/Gomoob/Pushwoosh/Model/Notification/IOSTest.php @@ -120,7 +120,7 @@ public function testJsonSerialize() ->setTrimContent(true) ->jsonSerialize(); - $this->assertCount(7, $array); + $this->assertCount(8, $array); $this->assertSame(1, $array['apns_trim_content']); $this->assertSame(5, $array['ios_badges']); $this->assertSame('1', $array['ios_category_id']); diff --git a/src/test/php/Gomoob/Pushwoosh/Model/Notification/NotificationTest.php b/src/test/php/Gomoob/Pushwoosh/Model/Notification/NotificationTest.php index 1d4a03f..8feb71b 100644 --- a/src/test/php/Gomoob/Pushwoosh/Model/Notification/NotificationTest.php +++ b/src/test/php/Gomoob/Pushwoosh/Model/Notification/NotificationTest.php @@ -622,7 +622,7 @@ public function testJsonSerialize() ->jsonSerialize(); // Test the generic properties - $this->assertCount(77, $array); + $this->assertCount(80, $array); $this->assertSame('now', $array['send_date']); $this->assertSame('America/New_York', $array['timezone']); $this->assertTrue($array['ignore_user_timezone']);