From 000b6a221d3b7bdb1fe275858482160d2dc20207 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Fri, 29 May 2026 12:25:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(tests):=20=E4=BF=AE=E6=AD=A3=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正 empty-test.phpt 中的静态属性测试文件路径 - 修正 isset-test.phpt 中的静态属性测试文件路径 - 修正 magic-constants.phpt 中 __DIR__ 魔术常量的期望输出 - 修正 ref-call-arg.phpt 中 zip 文件的路径引用 - 修正 static_class_property_read_write.phpt 中的测试文件路径 - 修正 universal_method_expr.phpt 中 Assert.php 的引入路径 --- tests/aot/basic/magic-constants.phpt | 2 +- tests/aot/{ => basic}/test_include.inc | 0 tests/aot/empty/empty-test.phpt | 2 +- tests/aot/empty/isset-test.phpt | 2 +- tests/aot/ref/ref-call-arg.phpt | 2 +- tests/aot/static/static_class_property_read_write.phpt | 2 +- tests/aot/universal_method/universal_method_expr.phpt | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename tests/aot/{ => basic}/test_include.inc (100%) diff --git a/tests/aot/basic/magic-constants.phpt b/tests/aot/basic/magic-constants.phpt index 4eb02b1c..7767715b 100644 --- a/tests/aot/basic/magic-constants.phpt +++ b/tests/aot/basic/magic-constants.phpt @@ -30,7 +30,7 @@ function main() { --EXPECTF-- __LINE__: int(%d) __FILE__: string(%d) "magic-constants.php" -__DIR__: string(%d) "aot" +__DIR__: string(%d) "basic" __FUNCTION__ in function: string(%d) "testFunction" __METHOD__: string(%d) "TestMagicConst::testMethod" __CLASS__: string(%d) "TestMagicConst" diff --git a/tests/aot/test_include.inc b/tests/aot/basic/test_include.inc similarity index 100% rename from tests/aot/test_include.inc rename to tests/aot/basic/test_include.inc diff --git a/tests/aot/empty/empty-test.phpt b/tests/aot/empty/empty-test.phpt index c222c0dd..84a03e68 100644 --- a/tests/aot/empty/empty-test.phpt +++ b/tests/aot/empty/empty-test.phpt @@ -2,7 +2,7 @@ empty (linked expr) --FILE-- open($path) === TRUE) { for ($idx = 0; $s = $zip->statIndex($idx); $idx++) { $rs = $zip->getExternalAttributesIndex($idx, $opsys, $attr); diff --git a/tests/aot/static/static_class_property_read_write.phpt b/tests/aot/static/static_class_property_read_write.phpt index 0666fec7..3e7bf6e0 100644 --- a/tests/aot/static/static_class_property_read_write.phpt +++ b/tests/aot/static/static_class_property_read_write.phpt @@ -3,7 +3,7 @@ Static Class Property Read/Write Test --FILE-- universal method --- Assert::eq(getString()->length(), 11);