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

68publishers / file-storage / 3801321664

pending completion
3801321664

push

github

tg666
Tests + PHPStan level 9 + Dependency update

20 of 20 new or added lines in 10 files covered. (100.0%)

585 of 603 relevant lines covered (97.01%)

0.97 hits per line

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

62.5
/src/Exception/PathInfoException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace SixtyEightPublishers\FileStorage\Exception;
6

7
use Exception;
8
use SixtyEightPublishers;
9
use function sprintf;
10

11
final class PathInfoException extends Exception implements ExceptionInterface
12
{
13
        public static function invalidPath(string $path): self
1✔
14
        {
15
                return new self(sprintf(
1✔
16
                        'Given path "%s" is not valid path for %s.',
1✔
17
                        $path,
1✔
18
                        SixtyEightPublishers\FileStorage\PathInfoInterface::class
1✔
19
                ));
20
        }
21

22
        public static function unsupportedExtension(string $extension): self
23
        {
24
                return new self(sprintf(
×
25
                        'File extension .%s is not supported.',
×
26
                        $extension
×
27
                ));
28
        }
29
}
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

© 2025 Coveralls, Inc