From b28332c5950940ef867532057b30c854286b68fe Mon Sep 17 00:00:00 2001
From: Petr Shumilov
Date: Tue, 31 Mar 2026 17:46:09 +0300
Subject: [PATCH] Add tests for get_running_fork_id
Signed-off-by: Petr Shumilov
---
tests/python/tests/coroutine/__init__.py | 0
.../coroutine/php/data/component-config.yaml | 7 +++
tests/python/tests/coroutine/php/index.php | 54 +++++++++++++++++++
.../coroutine/test_get_running_fork_id.py | 17 ++++++
4 files changed, 78 insertions(+)
create mode 100644 tests/python/tests/coroutine/__init__.py
create mode 100644 tests/python/tests/coroutine/php/data/component-config.yaml
create mode 100644 tests/python/tests/coroutine/php/index.php
create mode 100644 tests/python/tests/coroutine/test_get_running_fork_id.py
diff --git a/tests/python/tests/coroutine/__init__.py b/tests/python/tests/coroutine/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/python/tests/coroutine/php/data/component-config.yaml b/tests/python/tests/coroutine/php/data/component-config.yaml
new file mode 100644
index 0000000000..5ec7d22c4e
--- /dev/null
+++ b/tests/python/tests/coroutine/php/data/component-config.yaml
@@ -0,0 +1,7 @@
+entry: script
+components:
+ script:
+ image: KPHP
+ scope: Request
+ args: {}
+ links: {}
diff --git a/tests/python/tests/coroutine/php/index.php b/tests/python/tests/coroutine/php/index.php
new file mode 100644
index 0000000000..6f50bd4853
--- /dev/null
+++ b/tests/python/tests/coroutine/php/index.php
@@ -0,0 +1,54 @@
+