From 18b4bf4ed66d71615eb98836018efd316d6e9748 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Sun, 21 Jun 2026 10:30:33 +0800 Subject: [PATCH] =?UTF-8?q?test(phpunit):=20=E6=B7=BB=E5=8A=A0=E6=9C=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=96=B9=E6=B3=95=E8=B0=83=E7=94=A8=E5=92=8C?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E8=AE=BF=E9=97=AE=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 - 添加 undefined-method-call.php 测试文件 - 添加 undefined-prop-access.php 测试文件 - 创建基本的 PHP 对象方法调用测试场景 - 创建基本的 PHP 对象属性访问测试场景 --- phpunit/code/undefined-method-call.php | 5 +++++ phpunit/code/undefined-prop-access.php | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 phpunit/code/undefined-method-call.php create mode 100644 phpunit/code/undefined-prop-access.php diff --git a/phpunit/code/undefined-method-call.php b/phpunit/code/undefined-method-call.php new file mode 100644 index 00000000..cf8527bc --- /dev/null +++ b/phpunit/code/undefined-method-call.php @@ -0,0 +1,5 @@ +doSomething(); +} diff --git a/phpunit/code/undefined-prop-access.php b/phpunit/code/undefined-prop-access.php new file mode 100644 index 00000000..ff001656 --- /dev/null +++ b/phpunit/code/undefined-prop-access.php @@ -0,0 +1,5 @@ +value = 0; +}