diff --git a/tests/lib/SimpleSAML/Utils/CryptoTest.php b/tests/lib/SimpleSAML/Utils/CryptoTest.php index 95887beba6bfa350dcf54af7244223dd832cba22..ee5e011485b65e94cf23649e52dfb5667d078b38 100644 --- a/tests/lib/SimpleSAML/Utils/CryptoTest.php +++ b/tests/lib/SimpleSAML/Utils/CryptoTest.php @@ -391,13 +391,13 @@ PHP; { $filename = $this->certdir . DIRECTORY_SEPARATOR . 'key'; $data = 'data'; - $config = new Configuration(['privatekey' => $filename, 'privatekey_pass' => null], 'test'); + $config = new Configuration(['privatekey' => $filename], 'test'); $full_path = true; file_put_contents($filename, $data); $res = Crypto::loadPrivateKey($config, false, '', $full_path); - $expected = ['PEM' => $data]; + $expected = ['PEM' => $data, 'password' => null]; $this->assertEquals($expected, $res); }