From 8514d489a36e7d6745de6853de0da97bbfa28ae4 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Mon, 15 Jun 2026 15:28:54 +0800 Subject: [PATCH] =?UTF-8?q?test(array):=20=E6=B7=BB=E5=8A=A0=E6=95=B0?= =?UTF-8?q?=E7=BB=84=E6=96=B9=E6=B3=95=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 - 新增 array_method 测试文件 4.phpt - 添加 contains 方法的基本功能测试 - 验证严格模式下的类型检查行为 - 确保数组包含方法的正确性验证 --- tests/aot/array_method/4.phpt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/aot/array_method/4.phpt diff --git a/tests/aot/array_method/4.phpt b/tests/aot/array_method/4.phpt new file mode 100644 index 00000000..e64181ca --- /dev/null +++ b/tests/aot/array_method/4.phpt @@ -0,0 +1,19 @@ +--TEST-- +array_method: 1 +--FILE-- +contains(1999)); + Assert::true($array->contains(2025)); + $strict = true; + Assert::false($array->contains(2025, $strict)); + echo "done\n"; +} +?> +--EXPECT-- +done