runThen() public méthode

Handle a "then" step.
public runThen ( &$world, string $action, array $arguments ) : mixed
$action string The description of the step.
$arguments array Additional arguments to the step.
Résultat mixed The outcome of the step.
Exemple #1
0
 /**
  * Handle a "then" step.
  *
  * @param array  &$world    Joined "world" of variables.
  * @param string $action    The description of the step.
  * @param array  $arguments Additional arguments to the step.
  *
  * @return mixed The outcome of the step.
  */
 public function runThen(&$world, $action, $arguments)
 {
     switch ($action) {
         case 'the creation of the folder was successful':
             $this->assertNoError($world['folder_creation']);
             break;
         case 'the list contains a share named':
             $this->assertNoError($world['list']);
             $this->assertContains($arguments[0], array_keys($world['list']));
             break;
         default:
             return parent::runThen($world, $action, $arguments);
     }
 }