diff --git a/tests/lib/SimpleSAML/Utils/CryptoTest.php b/tests/lib/SimpleSAML/Utils/CryptoTest.php
index 04346750e40d61a93700ebd94e086eeee947feac..3a7bdb1751faa6ab7d5e78b90cd888c3cff17d3d 100644
--- a/tests/lib/SimpleSAML/Utils/CryptoTest.php
+++ b/tests/lib/SimpleSAML/Utils/CryptoTest.php
@@ -62,7 +62,7 @@ class CryptoTest extends TestCase
         }
 
         $secret = 'SUPER_SECRET_SALT';
-        $m = new ReflectionMethod('\SimpleSAML\Utils\Crypto', 'aesDecryptInternal');
+        $m = new ReflectionMethod(Crypto::class, 'aesDecryptInternal');
         $m->setAccessible(true);
 
         $plaintext = 'SUPER_SECRET_TEXT';
@@ -84,8 +84,8 @@ class CryptoTest extends TestCase
         }
 
         $secret = 'SUPER_SECRET_SALT';
-        $e = new ReflectionMethod('\SimpleSAML\Utils\Crypto', 'aesEncryptInternal');
-        $d = new ReflectionMethod('\SimpleSAML\Utils\Crypto', 'aesDecryptInternal');
+        $e = new ReflectionMethod(Crypto::class, 'aesEncryptInternal');
+        $d = new ReflectionMethod(Crypto::class, 'aesDecryptInternal');
         $e->setAccessible(true);
         $d->setAccessible(true);