@@ -26,11 +26,11 @@ public function testFileExistsButPathIsRelative(): void
26
26
{
27
27
$ this ->analyse ([__DIR__ . '/data/file-exists-but-path-is-relative.php ' ], [
28
28
[
29
- 'Required file "include-me-to-prove-you-work.txt" does not exist. ' ,
29
+ 'Path in require() "include-me-to-prove-you-work.txt" is not a file or it does not exist. ' ,
30
30
5 ,
31
31
],
32
32
[
33
- 'Required file "include-me-to-prove-you-work.txt" does not exist. ' ,
33
+ 'Path in require_once() "include-me-to-prove-you-work.txt" is not a file or it does not exist. ' ,
34
34
6 ,
35
35
],
36
36
]);
@@ -45,11 +45,11 @@ public function testFileDoesNotExistUsingClassConst(): void
45
45
{
46
46
$ this ->analyse ([__DIR__ . '/data/file-does-not-exist-using-class-const.php ' ], [
47
47
[
48
- 'Required file "a-file-that-does-not-exist.php" does not exist. ' ,
48
+ 'Path in require() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
49
49
7 ,
50
50
],
51
51
[
52
- 'Required file "a-file-that-does-not-exist.php" does not exist. ' ,
52
+ 'Path in require_once() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
53
53
8 ,
54
54
],
55
55
]);
@@ -64,15 +64,15 @@ public function testFileExistsUsingConst(): void
64
64
65
65
public function testFileDoesNotExistUsingConst (): void
66
66
{
67
- define ('FILE_DOES_NOT_EXIST ' , 'a-file-that-does-not-exist.txt ' );
67
+ define ('FILE_DOES_NOT_EXIST ' , 'a-file-that-does-not-exist.php ' );
68
68
69
69
$ this ->analyse ([__DIR__ . '/data/file-does-not-exist-using-constant.php ' ], [
70
70
[
71
- 'Required file "a-file-that-does-not-exist.txt" does not exist. ' ,
71
+ 'Path in require() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
72
72
7 ,
73
73
],
74
74
[
75
- 'Required file "a-file-that-does-not-exist.txt" does not exist. ' ,
75
+ 'Path in require_once() "a-file-that-does-not-exist.php" is not a file or it does not exist. ' ,
76
76
8 ,
77
77
],
78
78
]);
0 commit comments