From fb666794b5759949d44a536e3b9283e2f640bb59 Mon Sep 17 00:00:00 2001 From: stdex Date: Tue, 14 Sep 2021 23:26:45 +0300 Subject: [PATCH 1/2] Allow php 8.0 --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 11653d0..7128970 100644 --- a/composer.json +++ b/composer.json @@ -10,12 +10,12 @@ } ], "require": { - "php": "^7.1", - "cocur/slugify": "^3.1" + "php": ">=7.2", + "cocur/slugify": "^3.2" }, "require-dev": { - "phpunit/phpunit": "~7.0", - "mockery/mockery": "^1.1" + "phpunit/phpunit": "^8.5|^9.0", + "mockery/mockery": "^1.3" }, "autoload": { "files": [ From d2f73b64b193176a7f4d7536f9264c2b35a1b985 Mon Sep 17 00:00:00 2001 From: stdex Date: Tue, 14 Sep 2021 23:39:26 +0300 Subject: [PATCH 2/2] Allow php 8.0 --- .travis.yml | 3 ++- tests/Helpers/StringsTest.php | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d78237e..24c8595 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,10 @@ language: php php: - - 7.1 - 7.2 - 7.3 + - 7.4 + - 8.0 before_install: - composer self-update diff --git a/tests/Helpers/StringsTest.php b/tests/Helpers/StringsTest.php index a60c7d9..aa74fd7 100644 --- a/tests/Helpers/StringsTest.php +++ b/tests/Helpers/StringsTest.php @@ -21,11 +21,10 @@ public function testRandom() $this->assertSame(64, strlen(Strings::random(64))); } - /** - * @expectedException \RuntimeException - */ public function testRandomBad() { + $this->expectException(\RuntimeException::class); + Strings::random(0); }