test(aot): 添加布尔属性测试用例

- 在测试类中添加了新的布尔类型属性 $attr5
- 更新了对象属性访问的测试方法以包含新属性
- 扩展了预期输出以验证布尔值的正确处理
- 确保 AOT 编译器正确处理布尔类型对象属性
pull/1/head
韩天峰 4 months ago
parent 1e47ac0f53
commit 7e582d2eba
  1. 6
      tests/aot/object_property/002.phpt

@ -8,9 +8,10 @@ class Test {
protected string $attr2 = 'hello';
protected int $attr3 = 1232;
protected float $attr4 = 3.1415;
protected bool $attr5 = true;
function bar() {
var_dump($this->attr1, $this->attr2, $this->attr3, $this->attr4);
var_dump($this->attr1, $this->attr2, $this->attr3, $this->attr4, $this->attr5);
}
}
@ -23,4 +24,5 @@ function main() {
bool(false)
string(5) "hello"
int(1232)
float(3.1415)
float(3.1415)
bool(true)
Loading…
Cancel
Save