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

contributte / framex / 5225301450

pending completion
5225301450

push

github

f3l1x
Tests: cover more cases

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

54 of 76 relevant lines covered (71.05%)

0.71 hits per line

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

66.67
/src/Application.php
1
<?php declare(strict_types = 1);
2

3
namespace Contributte\FrameX;
4

5
use FrameworkX\App;
6
use FrameworkX\Container;
7
use Psr\Container\ContainerInterface;
8

9
class Application
10
{
11

12
        private readonly App $app;
13

14
        /**
15
         * @param array<callable|class-string> $middlewares
16
         */
17
        public function __construct(
1✔
18
                private readonly ContainerInterface $container,
19
                private readonly array $middlewares
20
        )
21
        {
22
                $this->app = new App(new Container($this->container), ...$this->middlewares);
1✔
23
        }
1✔
24

25
        /**
26
         * @param class-string $handler
27
         */
28
        public function get(string $route, string $handler): void
1✔
29
        {
30
                $this->app->get($route, $handler);
1✔
31
        }
1✔
32

33
        /**
34
         * @param class-string $handler
35
         */
36
        public function post(string $route, string $handler): void
37
        {
38
                $this->app->post($route, $handler);
×
39
        }
40

41
        /**
42
         * @param class-string $handler
43
         */
44
        public function put(string $route, string $handler): void
45
        {
46
                $this->app->put($route, $handler);
×
47
        }
48

49
        /**
50
         * @param class-string $handler
51
         */
52
        public function delete(string $route, string $handler): void
53
        {
54
                $this->app->delete($route, $handler);
×
55
        }
56

57
        /**
58
         * @param class-string $handler
59
         */
60
        public function options(string $route, string $handler): void
61
        {
62
                $this->app->options($route, $handler);
×
63
        }
64

65
        public function run(): void
66
        {
67
                $this->app->run();
1✔
68
        }
1✔
69

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