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

h4kuna / fio / 9349949038

03 Jun 2024 12:15PM UTC coverage: 90.991% (+0.7%) from 90.293%
9349949038

push

github

h4kuna
Improvement factory

4 of 5 new or added lines in 1 file covered. (80.0%)

3 existing lines in 1 file now uncovered.

505 of 555 relevant lines covered (90.99%)

0.91 hits per line

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

50.0
/src/Exceptions/MissingDependency.php
1
<?php declare(strict_types=1);
2

3
namespace h4kuna\Fio\Exceptions;
4

5
use GuzzleHttp\Client;
6
use Psr\Http\Client\ClientInterface;
7

8
final class MissingDependency extends \RuntimeException
9
{
10

11
        public static function checkGuzzlehttp(): void
12
        {
13
                if (class_exists(Client::class) === false) {
1✔
UNCOV
14
                        throw self::create(Client::class, 'guzzlehttp/guzzle');
×
15
                }
16

17
                if (is_a(Client::class, ClientInterface::class, true) === false) {
1✔
UNCOV
18
                        throw new self("Supported only guzzlehttp/guzzle 7.0+.");
×
19
                }
20
        }
1✔
21

22

23
        private static function create(string $class, string $package): self
24
        {
UNCOV
25
                return new self("Missing class \"$class\", you can install by: composer require $package");
×
26
        }
27

28
}
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