Skip to content

Commit a3a5e84

Browse files
Merge pull request #311 from alexislefebvre/doc-add-section-about-kernel-booted-once
doc: add section about kernel booted once
2 parents 29f8893 + 6c1b995 commit a3a5e84

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/caveats.md

+8
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,11 @@ when@test:
5959
framework:
6060
test: true
6161
```
62+
63+
## LogicException: […] the kernel should only be booted once.
64+
65+
Complete error message:
66+
67+
> LogicException: Booting the kernel before calling "Symfony\Bundle\FrameworkBundle\Test\WebTestCase::createClient()" is not supported, the kernel should only be booted once.
68+
69+
Solution: Call `self::ensureKernelShutdown();` before creating the client.

0 commit comments

Comments
 (0)