summaryrefslogtreecommitdiff
path: root/tests/temporal/Workflow/SideEffectWorkflow.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/temporal/Workflow/SideEffectWorkflow.php')
-rw-r--r--tests/temporal/Workflow/SideEffectWorkflow.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/temporal/Workflow/SideEffectWorkflow.php b/tests/temporal/Workflow/SideEffectWorkflow.php
deleted file mode 100644
index 95d396e4..00000000
--- a/tests/temporal/Workflow/SideEffectWorkflow.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-namespace Temporal\Tests\Workflow;
-
-use Temporal\Activity\ActivityOptions;
-use Temporal\Common\Uuid;
-use Temporal\Workflow;
-use Temporal\Workflow\WorkflowMethod;
-use Temporal\Tests\Activity\SimpleActivity;
-
-#[Workflow\WorkflowInterface]
-class SideEffectWorkflow
-{
- #[WorkflowMethod(name: 'SideEffectWorkflow')]
- public function handler(string $input): iterable
- {
- $simple = Workflow::newActivityStub(
- SimpleActivity::class,
- ActivityOptions::new()->withStartToCloseTimeout(5)
- );
-
- $result = yield Workflow::sideEffect(
- function () use ($input) {
- return $input . '-42';
- }
- );
-
- return yield $simple->lower($result);
- }
-}