@@ -174,14 +174,21 @@ public function testSomething()
174174 */
175175 public function testBuildDirectoryStructure ()
176176 {
177+ $ method = new ReflectionMethod (
178+ 'PHP_CodeCoverage_Report_Factory ' , 'buildDirectoryStructure '
179+ );
180+
181+ $ method ->setAccessible (TRUE );
182+
177183 $ this ->assertEquals (
178184 array (
179185 'src ' => array (
180186 'Money.php/f ' => array (),
181187 'MoneyBag.php/f ' => array ()
182188 )
183189 ),
184- $ this ->factory ->buildDirectoryStructure (
190+ $ method ->invoke (
191+ $ this ->factory ,
185192 array ('src/Money.php ' => array (), 'src/MoneyBag.php ' => array ())
186193 )
187194 );
@@ -192,12 +199,18 @@ public function testBuildDirectoryStructure()
192199 */
193200 public function testReducePaths ()
194201 {
202+ $ method = new ReflectionMethod (
203+ 'PHP_CodeCoverage_Report_Factory ' , 'reducePaths '
204+ );
205+
206+ $ method ->setAccessible (TRUE );
207+
195208 $ files = array (
196209 '/home/sb/Money/Money.php ' => array (),
197210 '/home/sb/Money/MoneyBag.php ' => array ()
198211 );
199212
200- $ commonPath = $ this -> factory -> reducePaths ( $ files );
213+ $ commonPath = $ method -> invokeArgs ( $ this -> factory , array (& $ files) );
201214
202215 $ this ->assertEquals (
203216 array (
@@ -215,9 +228,15 @@ public function testReducePaths()
215228 */
216229 public function testReducePaths2 ()
217230 {
231+ $ method = new ReflectionMethod (
232+ 'PHP_CodeCoverage_Report_Factory ' , 'reducePaths '
233+ );
234+
235+ $ method ->setAccessible (TRUE );
236+
218237 $ files = array ();
219238
220- $ commonPath = $ this -> factory -> reducePaths ( $ files );
239+ $ commonPath = $ method -> invokeArgs ( $ this -> factory , array (& $ files) );
221240
222241 $ this ->assertEquals ('. ' , $ commonPath );
223242 }
@@ -227,11 +246,17 @@ public function testReducePaths2()
227246 */
228247 public function testReducePaths3 ()
229248 {
249+ $ method = new ReflectionMethod (
250+ 'PHP_CodeCoverage_Report_Factory ' , 'reducePaths '
251+ );
252+
253+ $ method ->setAccessible (TRUE );
254+
230255 $ files = array (
231256 '/home/sb/Money/Money.php ' => array ()
232257 );
233258
234- $ commonPath = $ this -> factory -> reducePaths ( $ files );
259+ $ commonPath = $ method -> invokeArgs ( $ this -> factory , array (& $ files) );
235260
236261 $ this ->assertEquals (
237262 array (
0 commit comments