PHP Class Elcodi\Bundle\TestCommonBundle\Functional\WebTestCase

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

Protected Properties

Property Type Description
$application Symfony\Bundle\FrameworkBundle\Console\Application application
$kernel Symfony\Component\HttpKernel\KernelInterface kernel

Public Methods

Method Description
setUpBeforeClass ( ) Set up before class.
tearDownAfterClass ( ) Tear down after class.

Protected Methods

Method 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

Method Description
hasFixturesBundles ( ) : static Has fixtures to load.

Method Details

createClient() protected static method

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

createKernel() protected static method

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

createSchema() protected static method

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 method

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

loadFixtures() protected static method

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 method

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

loadSchema() protected static method

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

reloadScenario() protected method

Reload scenario.
protected reloadScenario ( )

setUpBeforeClass() public static method

Set up before class.
public static setUpBeforeClass ( )

tearDownAfterClass() public static method

Tear down after class.
public static tearDownAfterClass ( )

Property Details

$application protected static property

application
protected static Application,Symfony\Bundle\FrameworkBundle\Console $application
return Symfony\Bundle\FrameworkBundle\Console\Application

$kernel protected static property

kernel
protected static KernelInterface,Symfony\Component\HttpKernel $kernel
return Symfony\Component\HttpKernel\KernelInterface