Codeception\Module\WPBootstrapper::__construct PHP Method

__construct() public method

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
    public function __construct(ModuleContainer $moduleContainer, $config, Restorer $restorer = null, WP $wp = null)
    {
        parent::__construct($moduleContainer, $config);
        $this->restorer = $restorer ?: new Restorer();
        $this->wp = $wp ? $wp : new WP();
    }