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

fractalzombie / frzb-request-mapper / 7325768402

26 Dec 2023 01:53AM UTC coverage: 86.877% (-0.4%) from 87.277%
7325768402

push

github

fractalzombie
[RequestMapper] Update Dependencies, update functional library with breaking changes

35 of 39 new or added lines in 26 files covered. (89.74%)

8 existing lines in 2 files now uncovered.

331 of 381 relevant lines covered (86.88%)

27.46 hits per line

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

0.0
/Exception/ExceptionMapperLocatorException.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) 2023 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\RequestMapper\Exception;
17

18
use JetBrains\PhpStorm\Immutable;
19
use JetBrains\PhpStorm\Pure;
20

21
#[Immutable]
22
final class ExceptionMapperLocatorException extends \DomainException
23
{
24
    private const NOT_FOUND_MESSAGE = 'No mapper found for exception "%s"';
25

26
    #[Pure(true)]
27
    public static function notFound(\Throwable $previous, bool $wrapCallable = true): callable|self
28
    {
UNCOV
29
        $message = sprintf(self::NOT_FOUND_MESSAGE, $previous::class);
×
UNCOV
30
        $exception = new self($message, previous: $previous);
×
31

UNCOV
32
        return $wrapCallable ? static fn () => throw $exception : $exception;
×
33
    }
34
}
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