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

orchestral / testbench-core / 26936896244

04 Jun 2026 07:15AM UTC coverage: 91.413% (+0.02%) from 91.393%
26936896244

push

github

crynobone
Merge branch '11.x' into 12.x

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

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

14 existing lines in 4 files now uncovered.

1533 of 1677 relevant lines covered (91.41%)

78.11 hits per line

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

89.47
/src/Foundation/TestbenchServiceProvider.php
1
<?php
2

3
namespace Orchestra\Testbench\Foundation;
4

5
use Composer\InstalledVersions;
6
use Illuminate\Foundation\Console\AboutCommand;
7
use Illuminate\Support\ServiceProvider;
8
use NunoMaduro\Collision\Adapters\Laravel\Commands\TestCommand as CollisionTestCommand;
9

10
use function Orchestra\Testbench\package_path;
11

12
/**
13
 * @internal
14
 */
15
class TestbenchServiceProvider extends ServiceProvider
16
{
17
    /**
18
     * Register any application services.
19
     *
20
     * @return void
21
     */
22
    public function register(): void
23
    {
24
        AboutCommand::add('Testbench', fn () => array_filter([
5✔
25
            'Core Version' => InstalledVersions::getPrettyVersion('orchestra/testbench-core'),
5✔
26
            'Dusk Version' => InstalledVersions::isInstalled('orchestra/testbench-dusk') ? InstalledVersions::getPrettyVersion('orchestra/testbench-dusk') : null,
5✔
27
            'Skeleton Path' => AboutCommand::format($this->app->basePath(), console: fn ($value) => str_replace(package_path(), '', $value)),
5✔
28
            'Version' => InstalledVersions::isInstalled('orchestra/testbench') ? InstalledVersions::getPrettyVersion('orchestra/testbench') : null,
5✔
29
        ]));
5✔
30
    }
31

32
    /**
33
     * Bootstrap any application services.
34
     *
35
     * @return void
36
     */
37
    public function boot(): void
38
    {
39
        if ($this->app->runningInConsole()) {
5✔
40
            $this->commands([
5✔
41
                $this->isCollisionDependenciesInstalled()
5✔
UNCOV
42
                    ? Console\TestCommand::class
×
UNCOV
43
                    : Console\TestFallbackCommand::class,
×
44
                Console\CreateSqliteDbCommand::class,
5✔
45
                Console\DropSqliteDbCommand::class,
5✔
46
                Console\PurgeSkeletonCommand::class,
5✔
47
                Console\SyncSkeletonCommand::class,
5✔
48
                Console\ServeCommand::class,
5✔
49
                Console\VendorPublishCommand::class,
5✔
50
            ]);
5✔
51
        }
52
    }
53

54
    /**
55
     * Check if the parallel dependencies are installed.
56
     *
57
     * @return bool
58
     */
59
    protected function isCollisionDependenciesInstalled(): bool
60
    {
61
        return class_exists(CollisionTestCommand::class);
5✔
62
    }
63
}
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