PHP Class Elcodi\Bundle\TestCommonBundle\Functional\WebTestCase

Inheritance: extends Symfony\Bundle\FrameworkBundle\Test\WebTestCase, use trait Elcodi\Bundle\CoreBundle\Container\Traits\ContainerAccessorTrait
Afficher le fichier Open project: elcodi/elcodi Class Usage Examples

Protected Properties

Свойство Type Description
$application Symfony\Bundle\FrameworkBundle\Console\Application application
$kernel Symfony\Component\HttpKernel\KernelInterface kernel

Méthodes publiques

Méthode Description
setUpBeforeClass ( ) Set up before class.
tearDownAfterClass ( ) Tear down after class.

Méthodes protégées

Méthode Description
createClient ( array $server = [] ) : Client Creates a Client.
createKernel ( ) : Symfony\Component\HttpKernel\KernelInterface Creates a Kernel.
createSchema ( ) Creates schema.
getKernelClass ( ) : string Attempts to guess the kernel location.
loadFixtures ( ) load fixtures method.
loadFixturesBundles ( ) : array Load fixtures of these bundles.
loadSchema ( ) : boolean Schema must be loaded in all test cases.
reloadScenario ( ) Reload scenario.

Private Methods

Méthode Description
hasFixturesBundles ( ) : static Has fixtures to load.

Method Details

createClient() protected static méthode

Creates a Client.
protected static createClient ( array $server = [] ) : Client
$server array An array of server parameters
Résultat Symfony\Bundle\FrameworkBundle\Client A Client instance

createKernel() protected static méthode

Available options: * environment * debug
protected static createKernel ( ) : Symfony\Component\HttpKernel\KernelInterface
Résultat Symfony\Component\HttpKernel\KernelInterface A KernelInterface instance

createSchema() protected static méthode

Only creates schema if loadSchema() is set to true. All other methods will be loaded if this one is loaded. Otherwise, will return.
protected static createSchema ( )

getKernelClass() protected static méthode

When the Kernel is located, the file is required.
protected static getKernelClass ( ) : string
Résultat string The Kernel class name

loadFixtures() protected static méthode

This method is only called if create Schema is set to true Only load fixtures if loadFixtures() is set to true. All other methods will be loaded if this one is loaded. Otherwise, will return.
protected static loadFixtures ( )

loadFixturesBundles() protected static méthode

Load fixtures of these bundles.
protected static loadFixturesBundles ( ) : array
Résultat array Bundles name where fixtures should be found

loadSchema() protected static méthode

Schema must be loaded in all test cases.
protected static loadSchema ( ) : boolean
Résultat boolean Load schema

reloadScenario() protected méthode

Reload scenario.
protected reloadScenario ( )

setUpBeforeClass() public static méthode

Set up before class.
public static setUpBeforeClass ( )

tearDownAfterClass() public static méthode

Tear down after class.
public static tearDownAfterClass ( )

Property Details

$application protected_oe static_oe property

application
protected static Application,Symfony\Bundle\FrameworkBundle\Console $application
Résultat Symfony\Bundle\FrameworkBundle\Console\Application

$kernel protected_oe static_oe property

kernel
protected static KernelInterface,Symfony\Component\HttpKernel $kernel
Résultat Symfony\Component\HttpKernel\KernelInterface