/** * * @param \Mcustiel\Phiremock\Domain\Expectation $foundExpectation */ private function processScenario($foundExpectation) { if ($foundExpectation->getNewScenarioState()) { if (!$foundExpectation->getScenarioName()) { throw new \RuntimeException('Expecting scenario state without specifying scenario name'); } $this->scenarioStorage->setScenarioState($foundExpectation->getScenarioName(), $foundExpectation->getNewScenarioState()); } }