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

nepada / message-bus-nette / 7740739014

01 Feb 2024 11:49AM UTC coverage: 91.489%. Remained the same
7740739014

push

github

web-flow
Update nette/tester requirement from 2.5.1 to 2.5.2 (#119)

129 of 141 relevant lines covered (91.49%)

0.91 hits per line

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

83.33
/src/MessageBusNette/DI/PsrContainerAdapter.php
1
<?php
2
declare(strict_types = 1);
3

4
namespace Nepada\MessageBusNette\DI;
5

6
use Nette\DI\Container;
7
use Psr\Container\ContainerInterface;
8

9
final class PsrContainerAdapter implements ContainerInterface
10
{
11

12
    private Container $container;
13

14
    public function __construct(Container $container)
1✔
15
    {
16
        $this->container = $container;
1✔
17
    }
1✔
18

19
    public function get(string $id): object
1✔
20
    {
21
        return $this->container->getService($id);
1✔
22
    }
23

24
    public function has(string $id): bool
25
    {
26
        return $this->container->hasService($id);
×
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