diff --git a/src/Module/Phiremock.php b/src/Module/Phiremock.php index 63cadf4..97c58f0 100644 --- a/src/Module/Phiremock.php +++ b/src/Module/Phiremock.php @@ -25,6 +25,7 @@ use Mcustiel\Phiremock\Client\Phiremock as PhiremockClient; use Mcustiel\Phiremock\Client\Utils\RequestBuilder; use Mcustiel\Phiremock\Domain\Expectation; +use Mcustiel\Phiremock\Domain\ScenarioState; class Phiremock extends CodeceptionModule { @@ -122,4 +123,14 @@ public function grabRequestsMadeToRemoteService(RequestBuilder $builder) { return $this->phiremock->listExecutions($builder); } + + /** + * @param string $name + * @param string $state + */ + public function setScenarioState($name, $state) + { + $scenarioState = new ScenarioState($name, $state); + $this->phiremock->setScenarioState($scenarioState); + } }