From 10a66b1c31e97a1f4eece32da8592ec44b5df81e Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Tue, 21 Apr 2026 18:33:23 +0800 Subject: [PATCH] =?UTF-8?q?test(type):=20=E6=B7=BB=E5=8A=A0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=BD=AC=E6=8D=A2=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 创建对象重新赋值为数组的测试用例 - 创建字符串重新赋值给对象参数的测试用例 - 验证类型安全和变量重分配行为 - 测试对象到数组的类型转换场景 - 测试函数参数类型约束验证逻辑 --- phpunit/code/re-assign-obj-to-array.php | 7 +++++++ phpunit/code/re-assign-str-to-obj.php | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 phpunit/code/re-assign-obj-to-array.php create mode 100644 phpunit/code/re-assign-str-to-obj.php diff --git a/phpunit/code/re-assign-obj-to-array.php b/phpunit/code/re-assign-obj-to-array.php new file mode 100644 index 00000000..15437dde --- /dev/null +++ b/phpunit/code/re-assign-obj-to-array.php @@ -0,0 +1,7 @@ +