Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public function addWrongLogstashLog(\CodeGuy $I, \Codeception\Scenario $scenario)
 {
     if ($scenario->running() === false) {
         return;
     }
     $I->removeEmergencyLog();
     $I->addWrongLogstashLog('WrongLogstashLog');
     $I->seeEmergencyLog('WrongLogstashLog');
 }
Exemplo n.º 3
0
 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();
 }