父节点
469e5ba059
当前提交
0e757111a3
@ -0,0 +1,8 @@
|
||||
class BaseClass {
|
||||
|
||||
protected void run() {
|
||||
printf('Test launched...');
|
||||
include 'data/includes/include_test.aer';
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1 @@
|
||||
printf("OK!\n");
|
@ -0,0 +1,3 @@
|
||||
class Test {
|
||||
string $test = 'This is a test';
|
||||
}
|
12
tests/include_statements.aer
普通文件
12
tests/include_statements.aer
普通文件
@ -0,0 +1,12 @@
|
||||
require 'data/includes/base_class.aer';
|
||||
|
||||
class Program extends BaseClass {
|
||||
|
||||
void main() {
|
||||
$this->run();
|
||||
require 'data/includes/test_class.aer';
|
||||
object $test = new Test();
|
||||
var_dump($test);
|
||||
}
|
||||
|
||||
}
|
5
tests/include_statements.exp
普通文件
5
tests/include_statements.exp
普通文件
@ -0,0 +1,5 @@
|
||||
Test launched...OK!
|
||||
object(Test) {
|
||||
['test'] =>
|
||||
string(14 'This is a test')
|
||||
}
|
正在加载...
x
在新工单中引用
屏蔽一个用户