• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fractalzombie / frzb-metrics-power / 8448666183

27 Mar 2024 08:20AM UTC coverage: 57.143% (-3.1%) from 60.279%
8448666183

push

github

fractalzombie
[MetricsPower] Added unit and feature tests

20 of 28 new or added lines in 12 files covered. (71.43%)

15 existing lines in 6 files now uncovered.

156 of 273 relevant lines covered (57.14%)

4.32 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/EventListener/Kernel/KernelExceptionEventListener.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
7
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
9
 *
10
 * Copyright (c) 2024 Mykhailo Shtanko fractalzombie@gmail.com
11
 *
12
 * For the full copyright and license information, please view the LICENSE.MD
13
 * file that was distributed with this source code.
14
 */
15

16
namespace FRZB\Component\MetricsPower\EventListener\Kernel;
17

18
use FRZB\Component\MetricsPower\Enum\ListenerPriority;
19
use Sentry\State\HubInterface;
20
use Symfony\Component\EventDispatcher\Attribute\AsEventListener;
21
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
22
use Symfony\Component\HttpKernel\KernelEvents;
23

24
#[AsEventListener(KernelEvents::EXCEPTION, priority: ListenerPriority::HIGHEST)]
25
class KernelExceptionEventListener
26
{
27
    public function __construct(
28
        private readonly HubInterface $hub,
UNCOV
29
    ) {}
×
30

31
    public function __invoke(ExceptionEvent $event): void
32
    {
UNCOV
33
        $this->hub->captureException($event->getThrowable());
×
34
    }
35
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc