From: David Prévot <taffit@debian.org>
Date: Sat, 7 Feb 2026 10:56:29 +0100
Subject: Compatibility with recent PHPUnit (13)

Use assertContainsOnlyInstancesOf() instead of assertContainsOnly().
---
 tests/KeyTest.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/KeyTest.php b/tests/KeyTest.php
index 8a55852..ab07b44 100644
--- a/tests/KeyTest.php
+++ b/tests/KeyTest.php
@@ -64,7 +64,7 @@ class KeyTest extends TestCase
             . 'the number of sub-keys added.'
         );
 
-        $this->assertContainsOnly(
+        $this->assertContainsOnlyInstancesOf(
             SubKey::class,
             $subKeys,
             false,
@@ -121,7 +121,7 @@ class KeyTest extends TestCase
             . 'the number of user ids added.'
         );
 
-        $this->assertContainsOnly(
+        $this->assertContainsOnlyInstancesOf(
             UserId::class,
             $userIds,
             false,
@@ -370,7 +370,7 @@ class KeyTest extends TestCase
             . 'the number of sub-keys added.'
         );
 
-        $this->assertContainsOnly(
+        $this->assertContainsOnlyInstancesOf(
             SubKey::class,
             $subKeys,
             false,
@@ -410,7 +410,7 @@ class KeyTest extends TestCase
             . 'the number of sub-keys added.'
         );
 
-        $this->assertContainsOnly(
+        $this->assertContainsOnlyInstancesOf(
             SubKey::class,
             $subKeys,
             false,
@@ -463,7 +463,7 @@ class KeyTest extends TestCase
             . 'the number of user ids added.'
         );
 
-        $this->assertContainsOnly(
+        $this->assertContainsOnlyInstancesOf(
             UserId::class,
             $userIds,
             false,
@@ -496,7 +496,7 @@ class KeyTest extends TestCase
             . 'the number of user ids added.'
         );
 
-        $this->assertContainsOnly(
+        $this->assertContainsOnlyInstancesOf(
             UserId::class,
             $userIds,
             false,
