@@ -24,11 +24,13 @@ final class MapBuilderTest extends TestCase
24
24
{
25
25
public function testBuildsMap (): void
26
26
{
27
+ $ file = realpath (__DIR__ . '/../../_files/source_with_interfaces_classes_traits_functions.php ' );
28
+
27
29
$ this ->assertSame (
28
30
[
29
31
'namespaces ' => [
30
32
'SebastianBergmann \\CodeCoverage \\StaticAnalysis ' => [
31
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => array_merge (
33
+ $ file => array_merge (
32
34
range (19 , 24 ),
33
35
range (26 , 31 ),
34
36
range (33 , 52 ),
@@ -38,58 +40,81 @@ public function testBuildsMap(): void
38
40
],
39
41
'classes ' => [
40
42
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\ParentClass ' => [
41
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (26 , 31 ),
43
+ $ file => range (26 , 31 ),
42
44
],
43
45
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\ChildClass ' => [
44
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (33 , 52 ),
46
+ $ file => range (33 , 52 ),
45
47
],
46
48
],
47
49
'classesThatExtendClass ' => [
48
50
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\ParentClass ' => [
49
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (33 , 52 ),
51
+ $ file => range (33 , 52 ),
50
52
],
51
53
],
52
54
'classesThatImplementInterface ' => [
53
55
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\A ' => [
54
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (33 , 52 ),
56
+ $ file => range (33 , 52 ),
55
57
],
56
58
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\B ' => [
57
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (33 , 52 ),
59
+ $ file => range (33 , 52 ),
58
60
],
59
61
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\C ' => [
60
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (26 , 31 ),
62
+ $ file => range (26 , 31 ),
61
63
],
62
64
],
63
65
'traits ' => [
64
66
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\T ' => [
65
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (19 , 24 ),
67
+ $ file => range (19 , 24 ),
66
68
],
67
69
],
68
70
'methods ' => [
69
71
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\ParentClass::five ' => [
70
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (28 , 30 ),
72
+ $ file => range (28 , 30 ),
71
73
],
72
74
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\ChildClass::six ' => [
73
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (37 , 39 ),
75
+ $ file => range (37 , 39 ),
74
76
],
75
77
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\ChildClass::one ' => [
76
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (41 , 43 ),
78
+ $ file => range (41 , 43 ),
77
79
],
78
80
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\ChildClass::two ' => [
79
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (45 , 47 ),
81
+ $ file => range (45 , 47 ),
80
82
],
81
83
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\ChildClass::three ' => [
82
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (49 , 51 ),
84
+ $ file => range (49 , 51 ),
83
85
],
84
86
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\T::four ' => [
85
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (21 , 23 ),
87
+ $ file => range (21 , 23 ),
86
88
],
87
89
],
88
90
'functions ' => [
89
91
'SebastianBergmann \\CodeCoverage \\StaticAnalysis \\f ' => [
90
- realpath ( __DIR__ . ' /../../_files/source_with_interfaces_classes_traits_functions.php ' ) => range (54 , 56 ),
92
+ $ file => range (54 , 56 ),
91
93
],
92
94
],
95
+ 'reverseLookup ' => [
96
+ $ file . ':28 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ParentClass::five ' ,
97
+ $ file . ':29 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ParentClass::five ' ,
98
+ $ file . ':30 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ParentClass::five ' ,
99
+ $ file . ':37 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::six ' ,
100
+ $ file . ':38 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::six ' ,
101
+ $ file . ':39 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::six ' ,
102
+ $ file . ':41 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::one ' ,
103
+ $ file . ':42 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::one ' ,
104
+ $ file . ':43 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::one ' ,
105
+ $ file . ':45 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::two ' ,
106
+ $ file . ':46 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::two ' ,
107
+ $ file . ':47 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::two ' ,
108
+ $ file . ':49 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::three ' ,
109
+ $ file . ':50 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::three ' ,
110
+ $ file . ':51 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\ChildClass::three ' ,
111
+ $ file . ':21 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\T::four ' ,
112
+ $ file . ':22 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\T::four ' ,
113
+ $ file . ':23 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\T::four ' ,
114
+ $ file . ':54 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\f ' ,
115
+ $ file . ':55 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\f ' ,
116
+ $ file . ':56 ' => 'SebastianBergmann\CodeCoverage\StaticAnalysis\f ' ,
117
+ ],
93
118
],
94
119
$ this ->map ([__DIR__ . '/../../_files/source_with_interfaces_classes_traits_functions.php ' ]),
95
120
);
0 commit comments