diff --git a/.travis.yml b/.travis.yml index 87ce0deb..0ff413f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ language: php php: - 8.1 - 8.2 + - 8.3 services: - mysql diff --git a/tests/Unit/Listeners/DissociateTwofaccountFromGroupTest.php b/tests/Unit/Listeners/DissociateTwofaccountFromGroupTest.php index e22e84da..447d1b69 100644 --- a/tests/Unit/Listeners/DissociateTwofaccountFromGroupTest.php +++ b/tests/Unit/Listeners/DissociateTwofaccountFromGroupTest.php @@ -10,6 +10,7 @@ use Illuminate\Support\Facades\Event; use Mockery\MockInterface; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\PreserveGlobalState; +use PHPUnit\Framework\Attributes\RequiresPhp; use PHPUnit\Framework\Attributes\RunInSeparateProcess; use Tests\TestCase; @@ -24,6 +25,7 @@ class DissociateTwofaccountFromGroupTest extends TestCase */ #[RunInSeparateProcess] #[PreserveGlobalState(false)] + #[RequiresPhp('< 8.3.0')] public function test_twofaccount_is_released_on_group_deletion() { $this->mock('alias:' . TwoFAccount::class, function (MockInterface $twoFAccount) { diff --git a/tests/Unit/MigratorTest.php b/tests/Unit/MigratorTest.php index 30fc34f8..4a8459d7 100644 --- a/tests/Unit/MigratorTest.php +++ b/tests/Unit/MigratorTest.php @@ -22,6 +22,7 @@ use ParagonIE\ConstantTime\Base32; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\PreserveGlobalState; +use PHPUnit\Framework\Attributes\RequiresPhp; use PHPUnit\Framework\Attributes\RunInSeparateProcess; use PHPUnit\Framework\Attributes\UsesClass; use Tests\Data\MigrationTestData; @@ -333,6 +334,7 @@ class MigratorTest extends TestCase */ #[RunInSeparateProcess] #[PreserveGlobalState(false)] + #[RequiresPhp('< 8.3.0')] public function test_migrate_gauth_returns_fake_accounts() { $this->mock('alias:' . Base32::class, function (MockInterface $baseEncoder) { diff --git a/tests/Unit/TwoFAccountModelTest.php b/tests/Unit/TwoFAccountModelTest.php index 61e0f1f5..3cbac862 100644 --- a/tests/Unit/TwoFAccountModelTest.php +++ b/tests/Unit/TwoFAccountModelTest.php @@ -12,6 +12,7 @@ use Mockery\MockInterface; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\PreserveGlobalState; +use PHPUnit\Framework\Attributes\RequiresPhp; use PHPUnit\Framework\Attributes\RunInSeparateProcess; use Tests\ModelTestCase; @@ -121,6 +122,7 @@ class TwoFAccountModelTest extends ModelTestCase */ #[RunInSeparateProcess] #[PreserveGlobalState(false)] + #[RequiresPhp('< 8.3.0')] public function test_secret_is_uppercased_and_padded_at_setup() { $settingService = $this->mock(SettingService::class, function (MockInterface $settingService) {