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

tempestphp / tempest-framework / 11758117377

09 Nov 2024 05:25PM UTC coverage: 82.464% (-0.03%) from 82.497%
11758117377

Pull #702

github

web-flow
Merge ecd5ab56b into f3054f957
Pull Request #702: feat(http): map uploaded files into the request properties

5 of 5 new or added lines in 4 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

7256 of 8799 relevant lines covered (82.46%)

49.6 hits per line

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

0.0
/src/Tempest/Http/src/Commands/ServeCommand.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Http\Commands;
6

7
use Tempest\Console\ConsoleCommand;
8

9
final readonly class ServeCommand
10
{
11
    #[ConsoleCommand(
×
12
        name: 'serve',
13
        description: 'Start a PHP development server'
14
    )]
15
    public function __invoke(string $host = 'localhost', int $port = 8000, string $publicDir = 'public/'): void
16
    {
17
        putenv("TEMPEST_PUBLIC_DIR={$publicDir}");
×
UNCOV
18
        $routerFile = __DIR__ . '/router.php';
×
UNCOV
19
        passthru("php -S {$host}:{$port} -t {$publicDir} {$routerFile}");
×
20
    }
21
}
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