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

orchestral / testbench-core / 11985075971

23 Nov 2024 06:56AM UTC coverage: 91.991%. Remained the same
11985075971

push

github

crynobone
Merge remote-tracking branch 'origin/7.x' into 7.x

56 of 65 new or added lines in 23 files covered. (86.15%)

31 existing lines in 9 files now uncovered.

1206 of 1311 relevant lines covered (91.99%)

61.99 hits per line

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

80.0
/src/Bootstrap/LoadEnvironmentVariables.php
1
<?php
2

3
namespace Orchestra\Testbench\Bootstrap;
4

5
use Dotenv\Dotenv;
6
use Orchestra\Testbench\Foundation\Env;
7

8
use function Orchestra\Testbench\join_paths;
9

10
/**
11
 * @internal
12
 */
13
final class LoadEnvironmentVariables extends \Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables
14
{
15
    /** {@inheritDoc} */
16
    #[\Override]
17
    protected function createDotenv($app)
18
    {
19
        /** @phpstan-ignore method.notFound, method.notFound */
20
        if (! file_exists(join_paths($app->environmentPath(), $app->environmentFile()))) {
150✔
21
            return Dotenv::create(
150✔
22
                Env::getRepository(), (string) realpath(join_paths(__DIR__, 'stubs')), '.env.testbench'
150✔
23
            );
150✔
24
        }
25

UNCOV
26
        return parent::createDotenv($app);
×
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