Add some basic tests for the beginning
这个提交包含在:
9
tests/test1.php
普通文件
9
tests/test1.php
普通文件
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class Test1 {
|
||||||
|
}
|
||||||
|
|
||||||
|
$test = new Test1();
|
||||||
|
var_dump($test);
|
||||||
|
|
||||||
|
?>
|
||||||
12
tests/test2.php
普通文件
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
普通文件
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();
|
||||||
|
|
||||||
|
?>
|
||||||
在新工单中引用
屏蔽一个用户