Skip to content

Commit e0a5439

Browse files
Store test status.
1 parent b0027a9 commit e0a5439

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

PHP/CodeCoverage.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ class PHP_CodeCoverage
102102
*/
103103
protected $summary = array();
104104

105+
/**
106+
* Test data.
107+
*
108+
* @var array
109+
*/
110+
protected $tests = array();
111+
105112
/**
106113
* Constructor.
107114
*
@@ -220,7 +227,9 @@ public function append(array $data, $id = NULL)
220227

221228
if (!empty($data)) {
222229
if ($id instanceof PHPUnit_Framework_TestCase) {
223-
$id = get_class($id) . '::' . $id->getName();
230+
$status = $id->getStatus();
231+
$id = get_class($id) . '::' . $id->getName();
232+
$this->tests[$id] = $status;
224233
}
225234

226235
$this->data[$id] = array(

0 commit comments

Comments
 (0)