diff --git a/testing/src/Environment.php b/testing/src/Environment.php index 139775a1..8adccdab 100644 --- a/testing/src/Environment.php +++ b/testing/src/Environment.php @@ -50,7 +50,10 @@ public function start(?string $rrCommand = null, int $commandTimeout = 10, array $this->startRoadRunner($rrCommand, $commandTimeout, $envs); } - public function startTemporalServer(int $commandTimeout = 10): void + /** + * @param list $parameters + */ + public function startTemporalServer(int $commandTimeout = 10, array $parameters = []): void { $temporalPort = \parse_url(\getenv('TEMPORAL_ADDRESS') ?: '127.0.0.1:7233', PHP_URL_PORT); @@ -68,6 +71,7 @@ public function startTemporalServer(int $commandTimeout = 10): void '--search-attribute', 'bar=int', '--log-level', 'error', '--headless', + ...$parameters, ], ); $this->temporalServerProcess->setTimeout($commandTimeout);