Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks to step functions docs and tests #1052

Merged
merged 1 commit into from Jul 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/clients/step-functions.md
Expand Up @@ -10,14 +10,15 @@ package: async-aws/step-functions
### Start a state machine execution

```php
use AsyncAws\Lambda\LambdaClient;
use AsyncAws\StepFunctions\Input\StartExecutionInput;
use AsyncAws\StepFunctions\StepFunctionsClient;

$stepFunctions = new StepFunctionsClient();

$result = $stepFunctions->startExecution([
$result = $stepFunctions->startExecution(new StartExecutionInput([
'stateMachineArn' => 'arn:sfn',
'input' => '{"foo": "bar"}',
]);
]));

echo $result->getExecutionArn();
```
4 changes: 2 additions & 2 deletions src/CodeGenerator/src/Generator/TestGenerator.php
Expand Up @@ -251,7 +251,7 @@ private function generateIntegration(Operation $operation): void
RESULT_ASSERT
', [
'INPUT_CONSTRUCTOR' => $this->getInputCode($classBuilder, $operation->getInput()),
'METHOD' => $operation->getMethodName(),
'METHOD' => lcfirst($operation->getMethodName()),
'RESULT_ASSERT' => $operation->getOutput() ? $this->getResultAssert($operation->getOutput()) : '',
]));
}
Expand Down Expand Up @@ -357,7 +357,7 @@ private function generateClient(Operation $operation): void
'CLASS_NAME' => $clientName->getName(),
'INPUT_CONSTRUCTOR' => $this->getInputCode($classBuilder, $operation->getInput(), false),
'RESULT' => $output->getName(),
'METHOD' => $operation->getMethodName(),
'METHOD' => lcfirst($operation->getMethodName()),
]));
}

Expand Down
Expand Up @@ -21,7 +21,7 @@ public function testStartExecution(): void
'input' => 'change me',
'traceHeader' => 'change me',
]);
$result = $client->StartExecution($input);
$result = $client->startExecution($input);

$result->resolve();

Expand Down
Expand Up @@ -20,7 +20,7 @@ public function testStartExecution(): void
'name' => 'qwertyuiop',
'input' => '{"foo": "bar"}',
]);
$result = $client->StartExecution($input);
$result = $client->startExecution($input);

self::assertInstanceOf(StartExecutionOutput::class, $result);
self::assertFalse($result->info()['resolved']);
Expand Down