File tree Expand file tree Collapse file tree 1 file changed +68
-75
lines changed Expand file tree Collapse file tree 1 file changed +68
-75
lines changed Original file line number Diff line number Diff line change @@ -75,29 +75,28 @@ public function testMergeDoesNotCrashWhenFileContentsHaveChanged(): void
7575 $ coverage ->setFunctionCoverage (
7676 [
7777 '/some/path/SomeClass.php ' => [
78- 'SomeClass->firstFunction ' => [
79- 'branches ' => [
80- 0 => [
81- 'op_start ' => 0 ,
82- 'op_end ' => 14 ,
83- 'line_start ' => 20 ,
84- 'line_end ' => 25 ,
85- 'hit ' => [],
86- 'out ' => [
87- ],
88- 'out_hit ' => [
89- ],
90- ],
78+ 'SomeClass->firstFunction ' =>
79+ new ProcessedFunctionCoverageData (
80+ [
81+ new ProcessedBranchCoverageData (
82+ 0 ,
83+ 14 ,
84+ 20 ,
85+ 25 ,
86+ [],
87+ [],
88+ []
89+ )
9190 ],
92- ' paths ' => [
93- 0 => [
94- ' path ' => [
91+ [
92+ new ProcessedPathCoverageData (
93+ [
9594 0 => 0 ,
9695 ],
97- ' hit ' => [],
98- ] ,
99- ],
100- ] ,
96+ [],
97+ ) ,
98+ ]
99+ ) ,
101100 ],
102101 ],
103102 );
@@ -106,69 +105,63 @@ public function testMergeDoesNotCrashWhenFileContentsHaveChanged(): void
106105 $ newCoverage ->setFunctionCoverage (
107106 [
108107 '/some/path/SomeClass.php ' => [
109- 'SomeClass->firstFunction ' => [
110- 'branches ' => [
111- 0 => [
112- 'op_start ' => 0 ,
113- 'op_end ' => 14 ,
114- 'line_start ' => 20 ,
115- 'line_end ' => 25 ,
116- 'hit ' => [],
117- 'out ' => [
118- ],
119- 'out_hit ' => [
120- ],
121- ],
122- 1 => [
123- 'op_start ' => 15 ,
124- 'op_end ' => 16 ,
125- 'line_start ' => 26 ,
126- 'line_end ' => 27 ,
127- 'hit ' => [],
128- 'out ' => [
129- ],
130- 'out_hit ' => [
131- ],
132- ],
108+ 'SomeClass->firstFunction ' => new ProcessedFunctionCoverageData (
109+ [
110+ new ProcessedBranchCoverageData (
111+ 0 ,
112+ 14 ,
113+ 20 ,
114+ 25 ,
115+ [],
116+ [],
117+ []
118+ ),
119+ new ProcessedBranchCoverageData (
120+ 15 ,
121+ 16 ,
122+ 26 ,
123+ 27 ,
124+ [],
125+ [],
126+ []
127+ )
133128 ],
134- ' paths ' => [
135- 0 => [
136- ' path ' => [
129+ [
130+ new ProcessedPathCoverageData (
131+ [
137132 0 => 0 ,
138133 ],
139- ' hit ' => [],
140- ] ,
141- 1 => [
142- ' path ' => [
134+ []
135+ ) ,
136+ new ProcessedPathCoverageData (
137+ [
143138 0 => 1 ,
144139 ],
145- 'hit ' => [],
146- ],
140+ []
141+ ),
142+ ]
143+ ),
144+ 'SomeClass->secondFunction ' => new ProcessedFunctionCoverageData (
145+ [
146+ new ProcessedBranchCoverageData (
147+ 0 ,
148+ 24 ,
149+ 30 ,
150+ 35 ,
151+ [],
152+ [],
153+ []
154+ ),
147155 ],
148- ],
149- 'SomeClass->secondFunction ' => [
150- 'branches ' => [
151- 0 => [
152- 'op_start ' => 0 ,
153- 'op_end ' => 24 ,
154- 'line_start ' => 30 ,
155- 'line_end ' => 35 ,
156- 'hit ' => [],
157- 'out ' => [
158- ],
159- 'out_hit ' => [
160- ],
161- ],
162- ],
163- 'paths ' => [
164- 0 => [
165- 'path ' => [
156+ [
157+ new ProcessedPathCoverageData (
158+ [
166159 0 => 0 ,
167160 ],
168- ' hit ' => [],
169- ] ,
170- ],
171- ] ,
161+ []
162+ ) ,
163+ ]
164+ ) ,
172165 ],
173166 ],
174167 );
You can’t perform that action at this time.
0 commit comments