File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Tests/PHP/CodeCoverage/Report Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,18 @@ public static function getInstance()
182
182
return self ::$ instance ;
183
183
}
184
184
185
+ /**
186
+ * Returns the PHP_CodeCoverage_Report_Node_* object graph
187
+ * for this PHP_CodeCoverage object.
188
+ *
189
+ * @return PHP_CodeCoverage_Report_Node_Directory
190
+ * @since Method available since Release 1.1.0
191
+ */
192
+ public function getReport ()
193
+ {
194
+ return PHP_CodeCoverage_Report_Factory::create ($ this );
195
+ }
196
+
185
197
/**
186
198
* Clears collected code coverage data.
187
199
*/
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ class PHP_CodeCoverage_Report_FactoryTest extends PHP_CodeCoverage_TestCase
71
71
{
72
72
public function testSomething ()
73
73
{
74
- $ root = PHP_CodeCoverage_Report_Factory::create (
75
- $ this ->getCoverageForBankAccount ()
76
- );
74
+ $ root = $ this ->getCoverageForBankAccount ()->getReport ();
77
75
78
76
$ this ->assertEquals ('/usr/local/src/code-coverage/Tests/_files/ ' , $ root ->getName ());
79
77
$ this ->assertEquals ('/usr/local/src/code-coverage/Tests/_files/ ' , $ root ->getPath ());
You can’t perform that action at this time.
0 commit comments