Kraken\Test\TModule::simulate PHP Method

simulate() public method

Run test scenario as simulation.
public simulate ( callable $scenario ) : TModule
$scenario callable
return TModule
    public function simulate(callable $scenario)
    {
        try {
            $this->simulation->setScenario($scenario);
            $this->simulation->begin();
        } catch (Exception $ex) {
            $this->fail($ex->getMessage());
        }
        return $this;
    }