1--TEST--
2__DIR__ constant test with nested includes
3--FILE--
4<?php
5echo __DIR__ . "\n";
6echo dirname(__FILE__) . "\n";
7include 'fixtures/folder1/fixture.php';
8include 'fixtures/folder1/subfolder1/fixture.php';
9include 'fixtures/folder1/subfolder2/fixture.php';
10include 'fixtures/folder1/subfolder3/fixture.php';
11include 'fixtures/folder1/subfolder4/fixture.php';
12include 'fixtures/folder2/fixture.php';
13include 'fixtures/folder2/subfolder1/fixture.php';
14include 'fixtures/folder2/subfolder2/fixture.php';
15include 'fixtures/folder2/subfolder3/fixture.php';
16include 'fixtures/folder2/subfolder4/fixture.php';
17include 'fixtures/folder3/fixture.php';
18include 'fixtures/folder3/subfolder1/fixture.php';
19include 'fixtures/folder3/subfolder2/fixture.php';
20include 'fixtures/folder3/subfolder3/fixture.php';
21include 'fixtures/folder3/subfolder4/fixture.php';
22include 'fixtures/folder4/fixture.php';
23include 'fixtures/folder4/subfolder1/fixture.php';
24include 'fixtures/folder4/subfolder2/fixture.php';
25include 'fixtures/folder4/subfolder3/fixture.php';
26include 'fixtures/folder4/subfolder4/fixture.php';
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