This repository was archived by the owner on Sep 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class MainTest extends TestCase
10
10
{
11
11
public function testHappyPath (): void
12
12
{
13
- $ expectedTotalErrors = 12 ;
13
+ $ expectedTotalErrors = 16 ;
14
14
$ expectedErrorsPerFile = [
15
15
'file_exists_but_path_is_relative.php ' => [
16
16
'errors ' => 4 ,
@@ -24,6 +24,10 @@ public function testHappyPath(): void
24
24
'errors ' => 4 ,
25
25
'lines ' => [7 , 8 , 9 , 10 ]
26
26
],
27
+ 'included_file_does_not_exist_using_const.php ' => [
28
+ 'errors ' => 4 ,
29
+ 'lines ' => [5 , 6 , 7 , 8 ]
30
+ ],
27
31
];
28
32
$ errorStartsWith = 'Included or required file " ' ;
29
33
$ errorEndsWith = '" does not exist. ' ;
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ include __DIR__ . '/ ' . FILE_EXISTS ;
6
+ include_once __DIR__ . '/ ' . FILE_EXISTS ;
7
+ require __DIR__ . '/ ' . FILE_EXISTS ;
8
+ require_once __DIR__ . '/ ' . FILE_EXISTS ;
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ include __DIR__ . '/ ' . FILE_DOES_NOT_EXIST ;
6
+ include_once __DIR__ . '/ ' . FILE_DOES_NOT_EXIST ;
7
+ require __DIR__ . '/ ' . FILE_DOES_NOT_EXIST ;
8
+ require_once __DIR__ . '/ ' . FILE_DOES_NOT_EXIST ;
You can’t perform that action at this time.
0 commit comments