[TESTS][Twig] Add @codeCoverageIgnore to select methods, as these are simple wrappers

This commit is contained in:
Hugo Sales 2021-07-28 21:24:11 +00:00
parent e0ebef594f
commit 14db5d9864
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 14 additions and 1 deletions

View File

@ -68,6 +68,9 @@ class Runtime implements RuntimeExtensionInterface, EventSubscriberInterface
return $actions;
}
/**
* @codeCoverageIgnore
*/
public function getConfig(...$args)
{
return Common::config(...$args);
@ -77,6 +80,7 @@ class Runtime implements RuntimeExtensionInterface, EventSubscriberInterface
* get stylesheets
*
* @return array|mixed
* @codeCoverageIgnore
*/
public function getShowStylesheets()
{
@ -85,6 +89,9 @@ class Runtime implements RuntimeExtensionInterface, EventSubscriberInterface
return implode("\n", $styles);
}
/**
* @codeCoverageIgnore
*/
public function handleEvent(string $event, ...$args)
{
$res = [];
@ -111,12 +118,18 @@ class Runtime implements RuntimeExtensionInterface, EventSubscriberInterface
// ----------------------------------------------------------
// Request is not a service, can't find a better way to get it
/**
* @codeCoverageIgnore
*/
public function onKernelRequest(RequestEvent $event)
{
// Request is not a service, can't find a better way to get it
$this->request = $event->getRequest();
}
/**
* @codeCoverageIgnore
*/
public static function getSubscribedEvents()
{
return [KernelEvents::REQUEST => 'onKernelRequest'];