PHP Class Symfony\Component\HttpKernel\Tests\KernelTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: symfony/symfony

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode 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 méthode

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

getKernel() protected méthode

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
Résultat Symfony\Component\HttpKernel\Kernel

getKernelForTest() protected méthode

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

testBootInitializesBundlesAndContainer() public méthode

testBootKernelSeveralTimesOnlyInitializesBundlesOnce() public méthode

testBootSetsTheBootedFlagToTrue() public méthode

testBootSetsTheContainerToTheBundles() public méthode

testClassCacheIsLoaded() public méthode

testClassCacheIsNotLoadedByDefault() public méthode

testClassCacheIsNotLoadedWhenKernelIsNotBooted() public méthode

testClone() public méthode

public testClone ( )

testConstructor() public méthode

public testConstructor ( )

testEnvParametersResourceIsAdded() public méthode

testGetName() public méthode

public testGetName ( )

testGetRootDir() public méthode

public testGetRootDir ( )

testHandleBootsTheKernel() public méthode

testHandleCallsHandleOnHttpKernel() public méthode

testInitializeBundleThrowsExceptionWhenABundleExtendsItself() public méthode

testInitializeBundleThrowsExceptionWhenRegisteringTwoBundlesWithTheSameName() public méthode

testInitializeBundles() public méthode

testInitializeBundlesSupportInheritanceCascade() public méthode

testInitializeBundlesSupportsArbitraryBundleRegistrationOrder() public méthode

testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles() public méthode

testInitializeBundlesThrowsExceptionWhenAParentDoesNotExists() public méthode

testLocateResourceIgnoresDirOnNonResource() public méthode

testLocateResourceOnDirectories() public méthode

testLocateResourceOverrideBundleAndResourcesFolders() public méthode

testLocateResourceReturnsAllMatches() public méthode

testLocateResourceReturnsAllMatchesBis() public méthode

testLocateResourceReturnsTheDirOneForResources() public méthode

testLocateResourceReturnsTheDirOneForResourcesAndBundleOnes() public méthode

testLocateResourceReturnsTheFirstThatMatches() public méthode

testLocateResourceReturnsTheFirstThatMatchesWithParent() public méthode

testLocateResourceThrowsExceptionWhenBundleDoesNotExist() public méthode

testLocateResourceThrowsExceptionWhenNameIsNotValid() public méthode

testLocateResourceThrowsExceptionWhenNameIsUnsafe() public méthode

testLocateResourceThrowsExceptionWhenResourceDoesNotExist() public méthode

testOverrideGetName() public méthode

public testOverrideGetName ( )

testSerialize() public méthode

public testSerialize ( )

testShutdownCallsShutdownOnAllBundles() public méthode

testShutdownGivesNullContainerToAllBundles() public méthode

testStripComments() public méthode

public testStripComments ( )

testTerminateDelegatesTerminationOnlyForTerminableInterface() public méthode

testTerminateReturnsSilentlyIfKernelIsNotBooted() public méthode