PHP Class Symfony\Component\HttpKernel\Tests\KernelTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: symfony/symfony

Public Methods

Method Description
testBootInitializesBundlesAndContainer ( )
testBootKernelSeveralTimesOnlyInitializesBundlesOnce ( )
testBootSetsTheBootedFlagToTrue ( )
testBootSetsTheContainerToTheBundles ( )
testClassCacheIsLoaded ( )
testClassCacheIsNotLoadedByDefault ( )
testClassCacheIsNotLoadedWhenKernelIsNotBooted ( )
testClone ( )
testConstructor ( )
testEnvParametersResourceIsAdded ( )
testGetName ( )
testGetRootDir ( )
testHandleBootsTheKernel ( )
testHandleCallsHandleOnHttpKernel ( )
testInitializeBundleThrowsExceptionWhenABundleExtendsItself ( )
testInitializeBundleThrowsExceptionWhenRegisteringTwoBundlesWithTheSameName ( )
testInitializeBundles ( )
testInitializeBundlesSupportInheritanceCascade ( )
testInitializeBundlesSupportsArbitraryBundleRegistrationOrder ( )
testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles ( )
testInitializeBundlesThrowsExceptionWhenAParentDoesNotExists ( )
testLocateResourceIgnoresDirOnNonResource ( )
testLocateResourceOnDirectories ( )
testLocateResourceOverrideBundleAndResourcesFolders ( )
testLocateResourceReturnsAllMatches ( )
testLocateResourceReturnsAllMatchesBis ( )
testLocateResourceReturnsTheDirOneForResources ( )
testLocateResourceReturnsTheDirOneForResourcesAndBundleOnes ( )
testLocateResourceReturnsTheFirstThatMatches ( )
testLocateResourceReturnsTheFirstThatMatchesWithParent ( )
testLocateResourceThrowsExceptionWhenBundleDoesNotExist ( )
testLocateResourceThrowsExceptionWhenNameIsNotValid ( )
testLocateResourceThrowsExceptionWhenNameIsUnsafe ( )
testLocateResourceThrowsExceptionWhenResourceDoesNotExist ( )
testOverrideGetName ( )
testSerialize ( )
testShutdownCallsShutdownOnAllBundles ( )
testShutdownGivesNullContainerToAllBundles ( )
testStripComments ( )
testTerminateDelegatesTerminationOnlyForTerminableInterface ( )
testTerminateReturnsSilentlyIfKernelIsNotBooted ( )

Protected Methods

Method Description
getBundle ( $dir = null, $parent = null, $className = null, $bundleName = null ) : Symfony\Component\HttpKernel\Bundle\BundleInterface Returns a mock for the BundleInterface.
getKernel ( array $methods = [], array $bundles = [] ) : Kernel Returns a mock for the abstract kernel.
getKernelForTest ( array $methods = [] )

Method Details

getBundle() protected method

Returns a mock for the BundleInterface.
protected getBundle ( $dir = null, $parent = null, $className = null, $bundleName = null ) : Symfony\Component\HttpKernel\Bundle\BundleInterface
return Symfony\Component\HttpKernel\Bundle\BundleInterface

getKernel() protected method

Returns a mock for the abstract kernel.
protected getKernel ( array $methods = [], array $bundles = [] ) : Kernel
$methods array Additional methods to mock (besides the abstract ones)
$bundles array Bundles to register
return Symfony\Component\HttpKernel\Kernel

getKernelForTest() protected method

protected getKernelForTest ( array $methods = [] )
$methods array

testBootInitializesBundlesAndContainer() public method

testBootKernelSeveralTimesOnlyInitializesBundlesOnce() public method

testBootSetsTheBootedFlagToTrue() public method

testBootSetsTheContainerToTheBundles() public method

testClassCacheIsLoaded() public method

testClassCacheIsNotLoadedByDefault() public method

testClassCacheIsNotLoadedWhenKernelIsNotBooted() public method

testClone() public method

public testClone ( )

testConstructor() public method

public testConstructor ( )

testEnvParametersResourceIsAdded() public method

testGetName() public method

public testGetName ( )

testGetRootDir() public method

public testGetRootDir ( )

testHandleBootsTheKernel() public method

testHandleCallsHandleOnHttpKernel() public method

testInitializeBundleThrowsExceptionWhenABundleExtendsItself() public method

testInitializeBundleThrowsExceptionWhenRegisteringTwoBundlesWithTheSameName() public method

testInitializeBundles() public method

testInitializeBundlesSupportInheritanceCascade() public method

testInitializeBundlesSupportsArbitraryBundleRegistrationOrder() public method

testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles() public method

testInitializeBundlesThrowsExceptionWhenAParentDoesNotExists() public method

testLocateResourceIgnoresDirOnNonResource() public method

testLocateResourceOnDirectories() public method

testLocateResourceOverrideBundleAndResourcesFolders() public method

testLocateResourceReturnsAllMatches() public method

testLocateResourceReturnsAllMatchesBis() public method

testLocateResourceReturnsTheDirOneForResources() public method

testLocateResourceReturnsTheDirOneForResourcesAndBundleOnes() public method

testLocateResourceReturnsTheFirstThatMatches() public method

testLocateResourceReturnsTheFirstThatMatchesWithParent() public method

testLocateResourceThrowsExceptionWhenBundleDoesNotExist() public method

testLocateResourceThrowsExceptionWhenNameIsNotValid() public method

testLocateResourceThrowsExceptionWhenNameIsUnsafe() public method

testLocateResourceThrowsExceptionWhenResourceDoesNotExist() public method

testOverrideGetName() public method

public testOverrideGetName ( )

testSerialize() public method

public testSerialize ( )

testShutdownCallsShutdownOnAllBundles() public method

testShutdownGivesNullContainerToAllBundles() public method

testStripComments() public method

public testStripComments ( )

testTerminateDelegatesTerminationOnlyForTerminableInterface() public method

testTerminateReturnsSilentlyIfKernelIsNotBooted() public method