PHP Class Codeception\Module\WPBootstrapper

Bootstraps a WordPress installation to access its functions.
Inheritance: extends Codeception\Module, use trait WPSugarMethods
Afficher le fichier Open project: lucatume/wp-browser

Protected Properties

Свойство Type Description
$config array
$globalSnapshotSkipKeys array
$globalStateSnapshot SebastianBergmann\GlobalState\Snapshot
$requiredFields array
$restorer SebastianBergmann\GlobalState\Restorer
$superGlobalArrays array
$wp tad\WPBrowser\Adapters\WP
$wpLoadPath The absolute path to the target WordPress installation wp-load.php file.

Méthodes publiques

Méthode Description
__construct ( Codeception\Lib\ModuleContainer $moduleContainer, $config, SebastianBergmann\GlobalState\Restorer $restorer = null, tad\WPBrowser\Adapters\WP $wp = null )
_initialize ( )
bootstrapWp ( )
getSnapshot ( )
unsetGlobalClosures ( )

Méthodes protégées

Méthode Description
isClosure ( $value )
nullClosures ( $value, $level )
setupSuperglobalArrays ( )

Private Methods

Méthode Description
restoreAllGlobals ( )
restoreWpdbConnection ( )

Method Details

__construct() public méthode

public __construct ( Codeception\Lib\ModuleContainer $moduleContainer, $config, SebastianBergmann\GlobalState\Restorer $restorer = null, tad\WPBrowser\Adapters\WP $wp = null )
$moduleContainer Codeception\Lib\ModuleContainer
$restorer SebastianBergmann\GlobalState\Restorer
$wp tad\WPBrowser\Adapters\WP

_initialize() public méthode

public _initialize ( )

bootstrapWp() public méthode

public bootstrapWp ( )

getSnapshot() public méthode

public getSnapshot ( )

isClosure() protected méthode

protected isClosure ( $value )

nullClosures() protected méthode

protected nullClosures ( $value, $level )

setupSuperglobalArrays() protected méthode

protected setupSuperglobalArrays ( )

unsetGlobalClosures() public méthode

public unsetGlobalClosures ( )

Property Details

$config protected_oe property

protected array $config
Résultat array

$globalSnapshotSkipKeys protected_oe property

protected array $globalSnapshotSkipKeys
Résultat array

$globalStateSnapshot protected_oe property

protected Snapshot,SebastianBergmann\GlobalState $globalStateSnapshot
Résultat SebastianBergmann\GlobalState\Snapshot

$requiredFields protected_oe property

protected array $requiredFields
Résultat array

$restorer protected_oe property

protected Restorer,SebastianBergmann\GlobalState $restorer
Résultat SebastianBergmann\GlobalState\Restorer

$superGlobalArrays protected_oe property

protected array $superGlobalArrays
Résultat array

$wp protected_oe property

protected WP,tad\WPBrowser\Adapters $wp
Résultat tad\WPBrowser\Adapters\WP

$wpLoadPath protected_oe property

The absolute path to the target WordPress installation wp-load.php file.
protected $wpLoadPath