diff options
Diffstat (limited to 'tests/temporal/Workflow/ExceptionalWorkflow.php')
-rw-r--r-- | tests/temporal/Workflow/ExceptionalWorkflow.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/temporal/Workflow/ExceptionalWorkflow.php b/tests/temporal/Workflow/ExceptionalWorkflow.php new file mode 100644 index 00000000..9a3e907f --- /dev/null +++ b/tests/temporal/Workflow/ExceptionalWorkflow.php @@ -0,0 +1,18 @@ +<?php + +namespace Temporal\Tests\Workflow; + +use Temporal\Activity\ActivityOptions; +use Temporal\Tests\Activity\SimpleActivity; +use Temporal\Workflow; +use Temporal\Workflow\WorkflowMethod; + +#[Workflow\WorkflowInterface] +class ExceptionalWorkflow +{ + #[WorkflowMethod(name: 'ExceptionalWorkflow')] + public function handler() + { + throw new \RuntimeException("workflow error"); + } +} |