1--TEST--
2__DIR__ constant test with nested includes
3--FILE--
4<?php
5echo __DIR__ . "\n";
6echo dirname(__FILE__) . "\n";
7include 'fixtures/folder1/fixture.inc';
8include 'fixtures/folder1/subfolder1/fixture.inc';
9include 'fixtures/folder1/subfolder2/fixture.inc';
10include 'fixtures/folder1/subfolder3/fixture.inc';
11include 'fixtures/folder1/subfolder4/fixture.inc';
12include 'fixtures/folder2/fixture.inc';
13include 'fixtures/folder2/subfolder1/fixture.inc';
14include 'fixtures/folder2/subfolder2/fixture.inc';
15include 'fixtures/folder2/subfolder3/fixture.inc';
16include 'fixtures/folder2/subfolder4/fixture.inc';
17include 'fixtures/folder3/fixture.inc';
18include 'fixtures/folder3/subfolder1/fixture.inc';
19include 'fixtures/folder3/subfolder2/fixture.inc';
20include 'fixtures/folder3/subfolder3/fixture.inc';
21include 'fixtures/folder3/subfolder4/fixture.inc';
22include 'fixtures/folder4/fixture.inc';
23include 'fixtures/folder4/subfolder1/fixture.inc';
24include 'fixtures/folder4/subfolder2/fixture.inc';
25include 'fixtures/folder4/subfolder3/fixture.inc';
26include 'fixtures/folder4/subfolder4/fixture.inc';
27?>
28--EXPECTF--
29%stests%sconstants
30%stests%sconstants
31%stests%sconstants%sfixtures%sfolder1
32%stests%sconstants%sfixtures%sfolder1
33%stests%sconstants%sfixtures%sfolder1%ssubfolder1
34%stests%sconstants%sfixtures%sfolder1%ssubfolder1
35%stests%sconstants%sfixtures%sfolder1%ssubfolder2
36%stests%sconstants%sfixtures%sfolder1%ssubfolder2
37%stests%sconstants%sfixtures%sfolder1%ssubfolder3
38%stests%sconstants%sfixtures%sfolder1%ssubfolder3
39%stests%sconstants%sfixtures%sfolder1%ssubfolder4
40%stests%sconstants%sfixtures%sfolder1%ssubfolder4
41%stests%sconstants%sfixtures%sfolder2
42%stests%sconstants%sfixtures%sfolder2
43%stests%sconstants%sfixtures%sfolder2%ssubfolder1
44%stests%sconstants%sfixtures%sfolder2%ssubfolder1
45%stests%sconstants%sfixtures%sfolder2%ssubfolder2
46%stests%sconstants%sfixtures%sfolder2%ssubfolder2
47%stests%sconstants%sfixtures%sfolder2%ssubfolder3
48%stests%sconstants%sfixtures%sfolder2%ssubfolder3
49%stests%sconstants%sfixtures%sfolder2%ssubfolder4
50%stests%sconstants%sfixtures%sfolder2%ssubfolder4
51%stests%sconstants%sfixtures%sfolder3
52%stests%sconstants%sfixtures%sfolder3
53%stests%sconstants%sfixtures%sfolder3%ssubfolder1
54%stests%sconstants%sfixtures%sfolder3%ssubfolder1
55%stests%sconstants%sfixtures%sfolder3%ssubfolder2
56%stests%sconstants%sfixtures%sfolder3%ssubfolder2
57%stests%sconstants%sfixtures%sfolder3%ssubfolder3
58%stests%sconstants%sfixtures%sfolder3%ssubfolder3
59%stests%sconstants%sfixtures%sfolder3%ssubfolder4
60%stests%sconstants%sfixtures%sfolder3%ssubfolder4
61%stests%sconstants%sfixtures%sfolder4
62%stests%sconstants%sfixtures%sfolder4
63%stests%sconstants%sfixtures%sfolder4%ssubfolder1
64%stests%sconstants%sfixtures%sfolder4%ssubfolder1
65%stests%sconstants%sfixtures%sfolder4%ssubfolder2
66%stests%sconstants%sfixtures%sfolder4%ssubfolder2
67%stests%sconstants%sfixtures%sfolder4%ssubfolder3
68%stests%sconstants%sfixtures%sfolder4%ssubfolder3
69%stests%sconstants%sfixtures%sfolder4%ssubfolder4
70%stests%sconstants%sfixtures%sfolder4%ssubfolder4
71