Add 'include' & 'require' statements test.
All checks were successful
The build was successful.

This commit is contained in:
2019-12-10 19:21:27 +01:00
부모 469e5ba059
커밋 0e757111a3
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')
}