Skip to content

Commit 50fe7c0

Browse files
Pass configuration around.
1 parent b787e8f commit 50fe7c0

File tree

3 files changed

+50
-10
lines changed

3 files changed

+50
-10
lines changed

PHP/CodeCoverage/Report/HTML.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,18 @@ public function process(PHP_CodeCoverage $coverage, $target)
133133
$directory = new PHP_CodeCoverage_Report_HTML_Directory(
134134
$this->templatePath,
135135
$this->options['charset'],
136-
$this->options['generator']
136+
$this->options['generator'],
137+
$this->options['lowUpperBound'],
138+
$this->options['highLowerBound']
137139
);
138140

139141
$file = new PHP_CodeCoverage_Report_HTML_File(
140142
$this->templatePath,
141143
$this->options['charset'],
142144
$this->options['generator'],
145+
$this->options['lowUpperBound'],
146+
$this->options['highLowerBound'],
147+
$this->options['highlight'],
143148
$this->options['yui']
144149
);
145150

PHP/CodeCoverage/Report/HTML/Directory.php

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,32 @@ class PHP_CodeCoverage_Report_HTML_Directory
7272
*/
7373
protected $generator;
7474

75+
/**
76+
* @var integer
77+
*/
78+
protected $lowUpperBound;
79+
80+
/**
81+
* @var integer
82+
*/
83+
protected $highLowerBound;
84+
7585
/**
7686
* Constructor.
7787
*
7888
* @param string $templatePath
7989
* @param string $charset
8090
* @param string $generator
91+
* @param integer $lowUpperBound
92+
* @param integer $highLowerBound
8193
*/
82-
public function __construct($templatePath, $charset, $generator)
94+
public function __construct($templatePath, $charset, $generator, $lowUpperBound, $highLowerBound)
8395
{
84-
$this->templatePath = $templatePath;
85-
$this->charset = $charset;
86-
$this->generator = $generator;
96+
$this->templatePath = $templatePath;
97+
$this->charset = $charset;
98+
$this->generator = $generator;
99+
$this->lowUpperBound = $lowUpperBound;
100+
$this->highLowerBound = $highLowerBound;
87101
}
88102

89103
/**

PHP/CodeCoverage/Report/HTML/File.php

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,21 @@ class PHP_CodeCoverage_Report_HTML_File
7272
*/
7373
protected $generator;
7474

75+
/**
76+
* @var integer
77+
*/
78+
protected $lowUpperBound;
79+
80+
/**
81+
* @var integer
82+
*/
83+
protected $highLowerBound;
84+
85+
/**
86+
* @var boolean
87+
*/
88+
protected $highlight;
89+
7590
/**
7691
* @var boolean
7792
*/
@@ -83,14 +98,20 @@ class PHP_CodeCoverage_Report_HTML_File
8398
* @param string $templatePath
8499
* @param string $charset
85100
* @param string $generator
101+
* @param integer $lowUpperBound
102+
* @param integer $highLowerBound
103+
* @param boolean $highlight
86104
* @param boolean $yui
87105
*/
88-
public function __construct($templatePath, $charset, $generator, $yui)
106+
public function __construct($templatePath, $charset, $generator, $lowUpperBound, $highLowerBound, $highlight, $yui)
89107
{
90-
$this->templatePath = $templatePath;
91-
$this->charset = $charset;
92-
$this->generator = $generator;
93-
$this->yui = $yui;
108+
$this->templatePath = $templatePath;
109+
$this->charset = $charset;
110+
$this->generator = $generator;
111+
$this->lowUpperBound = $lowUpperBound;
112+
$this->highLowerBound = $highLowerBound;
113+
$this->highlight = $highlight;
114+
$this->yui = $yui;
94115
}
95116

96117
/**

0 commit comments

Comments
 (0)