From 4a50af333d4e1cb561ae9d0690e44480e7f4f493 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 4 Feb 2013 19:46:06 +0000 Subject: [PATCH] Added code coverage blocks --- src/OAuth2/Util/SecureKey.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OAuth2/Util/SecureKey.php b/src/OAuth2/Util/SecureKey.php index 53014278..35a55298 100644 --- a/src/OAuth2/Util/SecureKey.php +++ b/src/OAuth2/Util/SecureKey.php @@ -13,7 +13,9 @@ class SecureKey // We want to stop execution if the key fails because, well, that is bad. if ($bytes === false || $strong === false) { + // @codeCoverageIgnoreStart throw new \Exception('Error Generating Key'); + // @codeCoverageIgnoreEnd } return substr(str_replace(array('/', '+', '='), '', base64_encode($bytes)), 0, $len);