Ignore error_log messages in code coverage

This commit is contained in:
Alex Bilbie 2017-07-01 16:33:56 +01:00
parent 107cfc3678
commit e123fe82d0

View File

@ -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) {