Skip to content

Commit

Permalink
adding support php8 (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitriy Fedosov <dfedosov@belkacar.ru>
  • Loading branch information
TheNord and Dmitriy Fedosov authored Dec 11, 2024
1 parent 69d0d94 commit 859cb0e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}
},
"require": {
"php": "^5.6 || ^7.0",
"php": "^7.4 || ^8.0",
"ext-curl": "*",
"ext-json": "*"
},
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 859cb0e

Please sign in to comment.