diff --git a/tests/lib/SimpleSAML/Utils/CryptoTest.php b/tests/lib/SimpleSAML/Utils/CryptoTest.php index abd090c17e18c6da561d49034e4f5fd28bd1a3a0..bd395d589d4f79a323d263bff8c0127725db7ba5 100644 --- a/tests/lib/SimpleSAML/Utils/CryptoTest.php +++ b/tests/lib/SimpleSAML/Utils/CryptoTest.php @@ -14,7 +14,10 @@ class CryptoTest extends PHPUnit_Framework_TestCase */ public function testAesDecryptBadInput() { - \SimpleSAML\Utils\Crypto::aesDecrypt(array()); + $m = new ReflectionMethod('\SimpleSAML\Utils\Crypto', '_aesDecrypt'); + $m->setAccessible(true); + + $m->invokeArgs(null, array(array(), 'SECRET')); } @@ -25,7 +28,10 @@ class CryptoTest extends PHPUnit_Framework_TestCase */ public function testAesEncryptBadInput() { - \SimpleSAML\Utils\Crypto::aesEncrypt(array()); + $m = new ReflectionMethod('\SimpleSAML\Utils\Crypto', '_aesEncrypt'); + $m->setAccessible(true); + + $m->invokeArgs(null, array(array(), 'SECRET')); }