From e123fe82d0f70191276b88acf377d4fbe19b5cc3 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sat, 1 Jul 2017 16:33:56 +0100 Subject: [PATCH] Ignore error_log messages in code coverage --- src/AuthorizationServer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AuthorizationServer.php b/src/AuthorizationServer.php index 8c100775..bbe9c4b8 100644 --- a/src/AuthorizationServer.php +++ b/src/AuthorizationServer.php @@ -138,7 +138,9 @@ class AuthorizationServer implements EmitterAwareInterface $grantType->setEmitter($this->getEmitter()); if ($this->encryptionKey === null) { + // @codeCoverageIgnoreStart error_log(self::ENCRYPTION_KEY_ERROR); + // @codeCoverageIgnoreEnd } $grantType->setEncryptionKey($this->encryptionKey); @@ -158,7 +160,9 @@ class AuthorizationServer implements EmitterAwareInterface public function validateAuthorizationRequest(ServerRequestInterface $request) { if ($this->encryptionKey === null) { + // @codeCoverageIgnoreStart error_log(self::ENCRYPTION_KEY_ERROR); + // @codeCoverageIgnoreEnd } foreach ($this->enabledGrantTypes as $grantType) {