Add some basic tests for the beginning

这个提交包含在:
2018-07-25 13:41:31 +02:00
父节点 6628a1ea3d
当前提交 0c08bc61d4
修改 3 个文件,包含 37 行新增0 行删除

9
tests/test1.php 普通文件
查看文件

@@ -0,0 +1,9 @@
<?php
class Test1 {
}
$test = new Test1();
var_dump($test);
?>

12
tests/test2.php 普通文件
查看文件

@@ -0,0 +1,12 @@
<?php
class Test1 {
}
class Test2 extends Test1 {
}
$test = new Test2();
var_dump($test);
?>

16
tests/test3.php 普通文件
查看文件

@@ -0,0 +1,16 @@
<?php
class Test1 {
public $arg = 'Hello World!';
}
class Test2 extends Test1 {
public function test() {
echo $this->arg;
}
}
$test = new Test2();
$test->test();
?>