From 14db5d986415ca07afc06215445c704ee203af3f Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Wed, 28 Jul 2021 21:24:11 +0000 Subject: [PATCH] [TESTS][Twig] Add @codeCoverageIgnore to select methods, as these are simple wrappers --- src/Twig/Runtime.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Twig/Runtime.php b/src/Twig/Runtime.php index 6507df30df..42e3676aef 100644 --- a/src/Twig/Runtime.php +++ b/src/Twig/Runtime.php @@ -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'];