[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 1d40c5cdb3
commit efacf6da56
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

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