KernelTestCase
extends TestCase
in package
Uses
ForwardCompatTestTrait
KernelTestCase is the base class for tests needing a Kernel.
Tags
Table of Contents
- $booted : mixed
- $class : mixed
- $container : ContainerInterface
- $kernel : KernelInterface
- $kernelContainer : mixed
- bootKernel() : KernelInterface
- Boots the Kernel for this test.
- createKernel() : KernelInterface
- Creates a Kernel.
- ensureKernelShutdown() : mixed
- Shuts the kernel down if it was used in the test - called by the tearDown method by default.
- getKernelClass() : string
- doTearDown() : mixed
Properties
$booted
protected
static mixed
$booted
= false
$class
protected
static mixed
$class
$container
protected
static ContainerInterface
$container
$kernel
protected
static KernelInterface
$kernel
$kernelContainer
private
static mixed
$kernelContainer
Methods
bootKernel()
Boots the Kernel for this test.
protected
static bootKernel([array<string|int, mixed> $options = [] ]) : KernelInterface
Parameters
- $options : array<string|int, mixed> = []
Return values
KernelInterface —A KernelInterface instance
createKernel()
Creates a Kernel.
protected
static createKernel([array<string|int, mixed> $options = [] ]) : KernelInterface
Available options:
- environment
- debug
Parameters
- $options : array<string|int, mixed> = []
Return values
KernelInterface —A KernelInterface instance
ensureKernelShutdown()
Shuts the kernel down if it was used in the test - called by the tearDown method by default.
protected
static ensureKernelShutdown() : mixed
Return values
mixed —getKernelClass()
protected
static getKernelClass() : string
Tags
Return values
string —The Kernel class name
doTearDown()
private
doTearDown() : mixed