public function __call($method, $arguments) { if ($this->scenario->running()) { $class = get_class($this); throw new \RuntimeException("Call to undefined method {$class}::{$method}"); } $this->scenario->addStep(new Action($method, $arguments)); }
public function addWrongLogstashLog(\CodeGuy $I, \Codeception\Scenario $scenario) { if ($scenario->running() === false) { return; } $I->removeEmergencyLog(); $I->addWrongLogstashLog('WrongLogstashLog'); $I->seeEmergencyLog('WrongLogstashLog'); }
public function addLogstashLogToFile(\CodeGuy $I, \Codeception\Scenario $scenario) { if ($scenario->running() === false) { return; } $I->removeLogstashFile(); $I->addLogstashFileLog('logstashFileLog_array', 'array'); $I->addLogstashFileLog('logstashFileLog_stdClass', 'stdClass'); $I->seeLogstashFile(); }