abstract class WebTestCase extends KernelTestCase

WebTestCase is the base class for functional tests.

Traits

Properties

static protected $class from KernelTestCase
static protected KernelInterface $kernel from KernelTestCase
static protected ContainerInterface $container from KernelTestCase

Methods

void
tearDown()

No description

static string
getKernelClass()

No description

static KernelInterface
bootKernel(array $options = [])

Boots the Kernel for this test.

static KernelInterface
createKernel(array $options = [])

Creates a Kernel.

static 
ensureKernelShutdown()

Shuts the kernel down if it was used in the test - called by the tearDown method by default.

static KernelBrowser
createClient(array $options = [], array $server = [])

Creates a KernelBrowser.

Details

protected void tearDown()

Return Value

void

in KernelTestCase at line 46
static protected string getKernelClass()

Return Value

string The Kernel class name

Exceptions

RuntimeException
LogicException

in KernelTestCase at line 64
static protected KernelInterface bootKernel(array $options = [])

Boots the Kernel for this test.

Parameters

array $options

Return Value

KernelInterface A KernelInterface instance

in KernelTestCase at line 87
static protected KernelInterface createKernel(array $options = [])

Creates a Kernel.

Available options:

  • environment
  • debug

Parameters

array $options

Return Value

KernelInterface A KernelInterface instance

in KernelTestCase at line 119
static protected ensureKernelShutdown()

Shuts the kernel down if it was used in the test - called by the tearDown method by default.

at line 32
static protected KernelBrowser createClient(array $options = [], array $server = [])

Creates a KernelBrowser.

Parameters

array $options An array of options to pass to the createKernel method
array $server An array of server parameters

Return Value

KernelBrowser A KernelBrowser instance