コード例 #1
0
ファイル: ContextStack.php プロジェクト: jlippitt/tusk
 /**
  * Executes a context (i.e. spec or suite). Keeps track of previous
  * context and will restore it once context has finished running.
  *
  * @param AbstractContext $context
  */
 public function execute(AbstractContext $context)
 {
     $oldContext = $this->context;
     $this->context = $context;
     $context->setUp($this->skipFlag);
     $this->context = $oldContext;
 }