@@ -25,6 +25,14 @@ public function testItCannotReadConstantsDefinedInTheAnalysedFile(): void
25
25
public function testFileExistsButPathIsRelative (): void
26
26
{
27
27
$ this ->analyse ([__DIR__ . '/data/file-exists-but-path-is-relative.php ' ], [
28
+ [
29
+ 'Path in include() "include-me-to-prove-you-work.txt" is not a file or it does not exist. ' ,
30
+ 3 ,
31
+ ],
32
+ [
33
+ 'Path in include_once() "include-me-to-prove-you-work.txt" is not a file or it does not exist. ' ,
34
+ 4 ,
35
+ ],
28
36
[
29
37
'Path in require() "include-me-to-prove-you-work.txt" is not a file or it does not exist. ' ,
30
38
5 ,
@@ -44,6 +52,14 @@ public function testFileExistsUsingClassConst(): void
44
52
public function testFileDoesNotExistUsingClassConst (): void
45
53
{
46
54
$ this ->analyse ([__DIR__ . '/data/file-does-not-exist-using-class-const.php ' ], [
55
+ [
56
+ 'Path in include() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
57
+ 5 ,
58
+ ],
59
+ [
60
+ 'Path in include_once() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
61
+ 6 ,
62
+ ],
47
63
[
48
64
'Path in require() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
49
65
7 ,
@@ -67,6 +83,14 @@ public function testFileDoesNotExistUsingConst(): void
67
83
define ('FILE_DOES_NOT_EXIST ' , 'a-file-that-does-not-exist.php ' );
68
84
69
85
$ this ->analyse ([__DIR__ . '/data/file-does-not-exist-using-constant.php ' ], [
86
+ [
87
+ 'Path in include() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
88
+ 5 ,
89
+ ],
90
+ [
91
+ 'Path in include_once() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
92
+ 6 ,
93
+ ],
70
94
[
71
95
'Path in require() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
72
96
7 ,
@@ -91,6 +115,14 @@ public function testFileExistsUsingVariables(): void
91
115
public function testFileDoesNotExistButUsesVariables (): void
92
116
{
93
117
$ this ->analyse ([__DIR__ . '/data/file-does-not-exist-but-uses-a-variable.php ' ], [
118
+ [
119
+ 'Path in include() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
120
+ 5 ,
121
+ ],
122
+ [
123
+ 'Path in include_once() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
124
+ 6 ,
125
+ ],
94
126
[
95
127
'Path in require() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
96
128
7 ,
0 commit comments