From e8fa430c8cbca61e0af3561da2c51f81fafbddab Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Tue, 16 Jun 2026 14:59:20 +0800 Subject: [PATCH] =?UTF-8?q?test(stdlib):=20=E6=B7=BB=E5=8A=A0ArrayObject?= =?UTF-8?q?=E7=9A=84count=E5=87=BD=E6=95=B0=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 创建了新的测试文件tests/aot/stdlib/countable.phpt - 添加ArrayObject实例化和元素添加的测试代码 - 验证count函数对ArrayObject的计数功能 - 设置期望输出为int(3)验证测试结果 --- tests/aot/stdlib/countable.phpt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/aot/stdlib/countable.phpt diff --git a/tests/aot/stdlib/countable.phpt b/tests/aot/stdlib/countable.phpt new file mode 100644 index 00000000..f540f4ad --- /dev/null +++ b/tests/aot/stdlib/countable.phpt @@ -0,0 +1,12 @@ +--TEST-- +count: ArrayObject +--FILE-- + +--EXPECT-- +int(3)