-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
27 lines (21 loc) · 857 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
include_once __DIR__ . '/setup.php';
$autoloader = require __DIR__ . '/vendor/autoload.php';
$sampleSimple = new \FQ\Samples\Simple();
pr($sampleSimple->queryFile1FromChild1());
pr($sampleSimple->queryFile1FromRoot1AndFromChild1());
pr($sampleSimple->queryFile1InReverse());
pr($sampleSimple->queryNonExistingFileWithRequirementOne());
pr($sampleSimple->queryNonExistingFileWithRequirementLast());
pr($sampleSimple->queryNonExistingFileWithRequirementAll());
pr($sampleSimple->executeQueryChild1());
pr($sampleSimple->executeQueryChild1());
pr($sampleSimple->executeQueryChild1('File2'));
pr($sampleSimple->executeQueryChild1());
function pr($var) {
$template = php_sapi_name() !== 'cli' ? '<pre>%s</pre>' : "\n%s\n";
printf($template, str_replace(' ', ' ', print_r($var, true)));
}
?>