Add 'include' & 'require' statements test.
The build was successful. 詳情

This commit is contained in:
Rafal Kupiec 2019-12-10 19:21:27 +01:00
父節點 469e5ba059
當前提交 0e757111a3
簽署人: belliash
GPG 金鑰 ID: 4E829243E0CFE6B4
共有 5 個檔案被更改,包括 29 行新增0 行删除

查看文件

@ -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';
}

查看文件

@ -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);
}
}

查看文件

@ -0,0 +1,5 @@
Test launched...OK!
object(Test) {
['test'] =>
string(14 'This is a test')
}