FileAccess Orion

KernelTestCase extends TestCase
in package
Uses ForwardCompatTestTrait

KernelTestCase is the base class for tests needing a Kernel.

Tags
author

Fabien Potencier fabien@symfony.com

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

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
throws
RuntimeException
throws
LogicException
Return values
string

The Kernel class name

doTearDown()

private doTearDown() : mixed
Return values
mixed

Search results