@@ 66-74 (lines=9) @@ | ||
63 | ||
64 | /** @var ScenarioStateArgument[] $annotations */ |
|
65 | $annotations = $this->reader->getMethodAnnotations($function); |
|
66 | foreach ($annotations as $annotation) { |
|
67 | if ($annotation instanceof ScenarioStateArgument && |
|
68 | in_array($annotation->getArgument(), $paramsKeys) && |
|
69 | $store->hasStateFragment($annotation->getName()) |
|
70 | ) { |
|
71 | $match[$annotation->getArgument()] = $store->getStateFragment($annotation->getName()); |
|
72 | $match[strval(++$i)] = $store->getStateFragment($annotation->getName()); |
|
73 | } |
|
74 | } |
|
75 | ||
76 | return $this->baseOrganiser->organiseArguments($function, $match); |
|
77 | } |
@@ 95-103 (lines=9) @@ | ||
92 | ||
93 | /** @var ScenarioStateArgument[] $annotations */ |
|
94 | $annotations = $this->reader->getMethodAnnotations($function); |
|
95 | foreach ($annotations as $annotation) { |
|
96 | if ($annotation instanceof ScenarioStateArgument && |
|
97 | in_array($annotation->getArgument(), $paramsKeys) && |
|
98 | $store->hasStateFragment($annotation->getName()) |
|
99 | ) { |
|
100 | $match[$annotation->getArgument()] = $store->getStateFragment($annotation->getName()); |
|
101 | $match[strval(++$i)] = $store->getStateFragment($annotation->getName()); |
|
102 | } |
|
103 | } |
|
104 | ||
105 | $results[] = $this->callCenter->makeCall(new ScenarioStateCall($scope, $hook, ['foo', 'bar'])); |
|
106 | } |