We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f5f9e commit 20ed813Copy full SHA for 20ed813
src/Module/Phiremock.php
@@ -25,6 +25,7 @@
25
use Mcustiel\Phiremock\Client\Phiremock as PhiremockClient;
26
use Mcustiel\Phiremock\Client\Utils\RequestBuilder;
27
use Mcustiel\Phiremock\Domain\Expectation;
28
+use Mcustiel\Phiremock\Domain\ScenarioState;
29
30
class Phiremock extends CodeceptionModule
31
{
@@ -122,4 +123,14 @@ public function grabRequestsMadeToRemoteService(RequestBuilder $builder)
122
123
124
return $this->phiremock->listExecutions($builder);
125
}
126
+
127
+ /**
128
+ * @param string $name
129
+ * @param string $state
130
+ */
131
+ public function setScenarioState($name, $state)
132
+ {
133
+ $scenarioState = new ScenarioState($name, $state);
134
+ $this->phiremock->setScenarioState($scenarioState);
135
+ }
136
0 commit comments