From 55993ce9976f0b70d9cdd53e944877b3f4051fc4 Mon Sep 17 00:00:00 2001 From: Michal Nowacki Date: Sat, 9 Mar 2024 23:25:39 -0500 Subject: [PATCH] add integration tests --- .../frameworks/yii/test_basic_cli.php | 22 +++++++++ .../frameworks/yii/test_basic_web.php | 22 +++++++++ .../frameworks/yii/yii2/baseyii.php | 46 +++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 tests/integration/frameworks/yii/test_basic_cli.php create mode 100644 tests/integration/frameworks/yii/test_basic_web.php create mode 100644 tests/integration/frameworks/yii/yii2/baseyii.php diff --git a/tests/integration/frameworks/yii/test_basic_cli.php b/tests/integration/frameworks/yii/test_basic_cli.php new file mode 100644 index 000000000..9efbbd91a --- /dev/null +++ b/tests/integration/frameworks/yii/test_basic_cli.php @@ -0,0 +1,22 @@ +runWithParams([]); diff --git a/tests/integration/frameworks/yii/test_basic_web.php b/tests/integration/frameworks/yii/test_basic_web.php new file mode 100644 index 000000000..0fc64a979 --- /dev/null +++ b/tests/integration/frameworks/yii/test_basic_web.php @@ -0,0 +1,22 @@ +runWithParams([]); diff --git a/tests/integration/frameworks/yii/yii2/baseyii.php b/tests/integration/frameworks/yii/yii2/baseyii.php new file mode 100644 index 000000000..f884c6853 --- /dev/null +++ b/tests/integration/frameworks/yii/yii2/baseyii.php @@ -0,0 +1,46 @@ +uniqid = $argument; + } + + public function getUniqueId ( ) { + return $this->uniqid; + } + + public function runWithParams($params) { + return; + } + } + + /* Console action */ + class InlineAction { + private $uniqid; + + public function __construct($id) { + $this->uniqid = $id; + } + + public function getUniqueId ( ) { + return $this->uniqid; + } + + public function runWithParams($params) { + return; + } + } + echo ""; +}