/** * 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; }