We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TEMPEST_START
1 parent c1be5e6 commit 1cabe2dCopy full SHA for 1cabe2d
src/Tempest/Core/src/Kernel.php
@@ -39,6 +39,8 @@ public static function boot(
39
array $discoveryLocations = [],
40
?Container $container = null,
41
): self {
42
+ define('TEMPEST_START', value: hrtime(true));
43
+
44
return (new self(
45
root: $root,
46
discoveryLocations: $discoveryLocations,
tests/Integration/Core/KernelTest.php
@@ -34,4 +34,14 @@ public function test_discovery_boot(): void
34
$this->assertInstanceOf(TestDependency::class, $test);
35
$this->assertSame('test', $test->input);
36
}
37
38
+ public function test_kernel_start(): void
+ {
+ Kernel::boot(
+ root: getcwd(),
+ discoveryLocations: [],
+ );
+ $this->assertTrue(defined('TEMPEST_START'));
+ }
47
0 commit comments