Documentation

KernelTest extends TestCase
in package

Table of Contents

tearDownAfterClass()  : mixed
testBootInitializesBundlesAndContainer()  : mixed
testBootKernelSeveralTimesOnlyInitializesBundlesOnce()  : mixed
testBootSetsTheBootedFlagToTrue()  : mixed
testBootSetsTheContainerToTheBundles()  : mixed
testClassCacheIsLoaded()  : mixed
testClassCacheIsNotLoadedByDefault()  : mixed
testClassCacheIsNotLoadedWhenKernelIsNotBooted()  : mixed
testClone()  : mixed
testConstructor()  : mixed
testEnvParametersResourceIsAdded()  : mixed
testGetName()  : mixed
testGetRootDir()  : mixed
testHandleBootsTheKernel()  : mixed
testHandleCallsHandleOnHttpKernel()  : mixed
testInitializeBundles()  : mixed
testInitializeBundlesSupportInheritanceCascade()  : mixed
testInitializeBundlesSupportsArbitraryBundleRegistrationOrder()  : mixed
testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles()  : mixed
testInitializeBundlesThrowsExceptionWhenAParentDoesNotExists()  : mixed
testInitializeBundleThrowsExceptionWhenABundleExtendsItself()  : mixed
testInitializeBundleThrowsExceptionWhenRegisteringTwoBundlesWithTheSameName()  : mixed
testInitializeContainerClearsOldContainers()  : mixed
testKernelPass()  : mixed
testKernelReset()  : mixed
testKernelRootDirNameStartingWithANumber()  : mixed
testKernelStartTimeIsResetWhileBootingAlreadyBootedKernel()  : mixed
testKernelWithoutBundles()  : mixed
testLocateResourceIgnoresDirOnNonResource()  : mixed
testLocateResourceOnDirectories()  : mixed
testLocateResourceOverrideBundleAndResourcesFolders()  : mixed
testLocateResourceReturnsAllMatches()  : mixed
testLocateResourceReturnsAllMatchesBis()  : mixed
testLocateResourceReturnsTheDirOneForResources()  : mixed
testLocateResourceReturnsTheDirOneForResourcesAndBundleOnes()  : mixed
testLocateResourceReturnsTheFirstThatMatches()  : mixed
testLocateResourceReturnsTheFirstThatMatchesWithParent()  : mixed
testLocateResourceThrowsExceptionWhenBundleDoesNotExist()  : mixed
testLocateResourceThrowsExceptionWhenNameIsNotValid()  : mixed
testLocateResourceThrowsExceptionWhenNameIsUnsafe()  : mixed
testLocateResourceThrowsExceptionWhenResourceDoesNotExist()  : mixed
testOverrideGetName()  : mixed
testProjectDirExtension()  : mixed
testSerialize()  : mixed
testServicesResetter()  : mixed
testShutdownCallsShutdownOnAllBundles()  : mixed
testShutdownGivesNullContainerToAllBundles()  : mixed
testStripComments()  : mixed
testSymfonyEnvironmentVariables()  : mixed
testTerminateDelegatesTerminationOnlyForTerminableInterface()  : mixed
testTerminateReturnsSilentlyIfKernelIsNotBooted()  : mixed
getBundle()  : BundleInterface
Returns a mock for the BundleInterface.
getKernel()  : Kernel
Returns a mock for the abstract kernel.
getKernelForTest()  : mixed

Methods

tearDownAfterClass()

public static tearDownAfterClass() : mixed
Return values
mixed

testBootInitializesBundlesAndContainer()

public testBootInitializesBundlesAndContainer() : mixed
Return values
mixed

testBootKernelSeveralTimesOnlyInitializesBundlesOnce()

public testBootKernelSeveralTimesOnlyInitializesBundlesOnce() : mixed
Return values
mixed

testBootSetsTheBootedFlagToTrue()

public testBootSetsTheBootedFlagToTrue() : mixed
Return values
mixed

testBootSetsTheContainerToTheBundles()

public testBootSetsTheContainerToTheBundles() : mixed
Return values
mixed

testClassCacheIsLoaded()

public testClassCacheIsLoaded() : mixed
Tags
group

legacy

Return values
mixed

testClassCacheIsNotLoadedByDefault()

public testClassCacheIsNotLoadedByDefault() : mixed
Return values
mixed

testClassCacheIsNotLoadedWhenKernelIsNotBooted()

public testClassCacheIsNotLoadedWhenKernelIsNotBooted() : mixed
Tags
group

legacy

Return values
mixed

testClone()

public testClone() : mixed
Return values
mixed

testConstructor()

public testConstructor() : mixed
Return values
mixed

testEnvParametersResourceIsAdded()

public testEnvParametersResourceIsAdded() : mixed
Return values
mixed

testGetName()

public testGetName() : mixed
Return values
mixed

testGetRootDir()

public testGetRootDir() : mixed
Return values
mixed

testHandleBootsTheKernel()

public testHandleBootsTheKernel() : mixed
Return values
mixed

testHandleCallsHandleOnHttpKernel()

public testHandleCallsHandleOnHttpKernel() : mixed
Return values
mixed

testInitializeBundles()

public testInitializeBundles() : mixed
Tags
group

legacy

Return values
mixed

testInitializeBundlesSupportInheritanceCascade()

public testInitializeBundlesSupportInheritanceCascade() : mixed
Tags
group

legacy

Return values
mixed

testInitializeBundlesSupportsArbitraryBundleRegistrationOrder()

public testInitializeBundlesSupportsArbitraryBundleRegistrationOrder() : mixed
Tags
group

legacy

Return values
mixed

testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles()

public testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles() : mixed
Tags
group

legacy

Return values
mixed

testInitializeBundlesThrowsExceptionWhenAParentDoesNotExists()

public testInitializeBundlesThrowsExceptionWhenAParentDoesNotExists() : mixed
Tags
group

legacy

Return values
mixed

testInitializeBundleThrowsExceptionWhenABundleExtendsItself()

public testInitializeBundleThrowsExceptionWhenABundleExtendsItself() : mixed
Tags
group

legacy

Return values
mixed

testInitializeBundleThrowsExceptionWhenRegisteringTwoBundlesWithTheSameName()

public testInitializeBundleThrowsExceptionWhenRegisteringTwoBundlesWithTheSameName() : mixed
Tags
group

legacy

Return values
mixed

testInitializeContainerClearsOldContainers()

public testInitializeContainerClearsOldContainers() : mixed
Return values
mixed

testKernelPass()

public testKernelPass() : mixed
Return values
mixed

testKernelReset()

public testKernelReset() : mixed
Return values
mixed

testKernelRootDirNameStartingWithANumber()

public testKernelRootDirNameStartingWithANumber() : mixed
Return values
mixed

testKernelStartTimeIsResetWhileBootingAlreadyBootedKernel()

public testKernelStartTimeIsResetWhileBootingAlreadyBootedKernel() : mixed
Tags
group

time-sensitive

Return values
mixed

testKernelWithoutBundles()

public testKernelWithoutBundles() : mixed
Return values
mixed

testLocateResourceIgnoresDirOnNonResource()

public testLocateResourceIgnoresDirOnNonResource() : mixed
Return values
mixed

testLocateResourceOnDirectories()

public testLocateResourceOnDirectories() : mixed
Return values
mixed

testLocateResourceOverrideBundleAndResourcesFolders()

public testLocateResourceOverrideBundleAndResourcesFolders() : mixed
Tags
group

legacy

Return values
mixed

testLocateResourceReturnsAllMatches()

public testLocateResourceReturnsAllMatches() : mixed
Tags
group

legacy

Return values
mixed

testLocateResourceReturnsAllMatchesBis()

public testLocateResourceReturnsAllMatchesBis() : mixed
Tags
group

legacy

Return values
mixed

testLocateResourceReturnsTheDirOneForResources()

public testLocateResourceReturnsTheDirOneForResources() : mixed
Return values
mixed

testLocateResourceReturnsTheDirOneForResourcesAndBundleOnes()

public testLocateResourceReturnsTheDirOneForResourcesAndBundleOnes() : mixed
Tags
group

legacy

Return values
mixed

testLocateResourceReturnsTheFirstThatMatches()

public testLocateResourceReturnsTheFirstThatMatches() : mixed
Return values
mixed

testLocateResourceReturnsTheFirstThatMatchesWithParent()

public testLocateResourceReturnsTheFirstThatMatchesWithParent() : mixed
Tags
group

legacy

Return values
mixed

testLocateResourceThrowsExceptionWhenBundleDoesNotExist()

public testLocateResourceThrowsExceptionWhenBundleDoesNotExist() : mixed
Return values
mixed

testLocateResourceThrowsExceptionWhenNameIsNotValid()

public testLocateResourceThrowsExceptionWhenNameIsNotValid() : mixed
Return values
mixed

testLocateResourceThrowsExceptionWhenNameIsUnsafe()

public testLocateResourceThrowsExceptionWhenNameIsUnsafe() : mixed
Return values
mixed

testLocateResourceThrowsExceptionWhenResourceDoesNotExist()

public testLocateResourceThrowsExceptionWhenResourceDoesNotExist() : mixed
Return values
mixed

testOverrideGetName()

public testOverrideGetName() : mixed
Return values
mixed

testProjectDirExtension()

public testProjectDirExtension() : mixed
Return values
mixed

testSerialize()

public testSerialize() : mixed
Return values
mixed

testServicesResetter()

public testServicesResetter() : mixed
Return values
mixed

testShutdownCallsShutdownOnAllBundles()

public testShutdownCallsShutdownOnAllBundles() : mixed
Return values
mixed

testShutdownGivesNullContainerToAllBundles()

public testShutdownGivesNullContainerToAllBundles() : mixed
Return values
mixed

testStripComments()

public testStripComments() : mixed
Return values
mixed

testSymfonyEnvironmentVariables()

public testSymfonyEnvironmentVariables() : mixed
Tags
group

legacy

expectedDeprecation

The "Symfony\Component\HttpKernel\Kernel::getEnvParameters()" method is deprecated as of 3.3 and will be removed in 4.0. Use the %cenv()%c syntax to get the value of any environment variable from configuration files instead.

expectedDeprecation

The support of special environment variables that start with SYMFONY__ (such as "SYMFONY__FOO__BAR") is deprecated as of 3.3 and will be removed in 4.0. Use the %cenv()%c syntax instead to get the value of environment variables in configuration files.

Return values
mixed

testTerminateDelegatesTerminationOnlyForTerminableInterface()

public testTerminateDelegatesTerminationOnlyForTerminableInterface() : mixed
Return values
mixed

testTerminateReturnsSilentlyIfKernelIsNotBooted()

public testTerminateReturnsSilentlyIfKernelIsNotBooted() : mixed
Return values
mixed

getBundle()

Returns a mock for the BundleInterface.

protected getBundle([mixed $dir = null ][, mixed $parent = null ][, mixed $className = null ][, mixed $bundleName = null ]) : BundleInterface
Parameters
$dir : mixed = null
$parent : mixed = null
$className : mixed = null
$bundleName : mixed = null
Return values
BundleInterface

getKernel()

Returns a mock for the abstract kernel.

protected getKernel([array<string|int, mixed> $methods = [] ][, array<string|int, mixed> $bundles = [] ][, mixed $debug = false ]) : Kernel
Parameters
$methods : array<string|int, mixed> = []

Additional methods to mock (besides the abstract ones)

$bundles : array<string|int, mixed> = []

Bundles to register

$debug : mixed = false
Return values
Kernel

getKernelForTest()

protected getKernelForTest([array<string|int, mixed> $methods = [] ][, mixed $debug = false ]) : mixed
Parameters
$methods : array<string|int, mixed> = []
$debug : mixed = false
Return values
mixed

Search results