PEAR2_Pyrus_Developer-0.4.0 › PEAR2_Pyrus_Developer-0.4.0/php/PEAR2/Pyrus/Developer/CoverageAnalyzer/Web/Aggregator.php
- PEAR2_Pyrus_Developer-0.4.0/
- customcommand/
- pear2.php.net/
- PEAR2_Pyrus_Developer/
- pear2.php.net/
- data/
- pear2.php.net/
- PEAR2_Pyrus_Developer/
- pear2.php.net/
- php/
- PEAR2/
- Autoload.php
- Exception.php
- MultiErrors/
- MultiErrors.php
- Pyrus/
- Developer/
- CoverageAnalyzer/
- Creator/
- PackageFile/
- Runphpt/
- Developer/
- PEAR2/
- www/
- pear2.php.net/
- PEAR2_Pyrus_Developer/
- pear2.php.net/
- customcommand/
- package.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
namespace PEAR2\Pyrus\Developer\CoverageAnalyzer\Web {
use PEAR2\Pyrus\Developer\CoverageAnalyzer;
class Aggregator extends CoverageAnalyzer\Aggregator
{
public $codepath;
public $testpath;
protected $sqlite;
public $totallines = 0;
public $totalcoveredlines = 0;
/**
* @var string $testpath Location of .phpt files
* @var string $codepath Location of code whose coverage we are testing
*/
function __construct($db = ':memory:')
{
$this->sqlite = new CoverageAnalyzer\Sqlite($db);
$this->codepath = $this->sqlite->codepath;
$this->testpath = $this->sqlite->testpath;
}
function retrieveLineLinks($file)
{
return $this->sqlite->retrieveLineLinks($file);
}
function retrievePaths()
{
return $this->sqlite->retrievePaths();
}
function retrievePathsForTest($test)
{
return $this->sqlite->retrievePathsForTest($test);
}
function retrieveTestPaths()
{
return $this->sqlite->retrieveTestPaths();
}
function coveragePercentage($sourcefile, $testfile = null)
{
return $this->sqlite->coveragePercentage($sourcefile, $testfile);
}
function coverageInfo($path)
{
return $this->sqlite->retrievePathCoverage($path);
}
function coverageInfoByTest($path, $test)
{
return $this->sqlite->retrievePathCoverageByTest($path, $test);
}
function retrieveCoverage($path)
{
return $this->sqlite->retrieveCoverage($path);
}
function retrieveProjectCoverage()
{
return $this->sqlite->retrieveProjectCoverage();
}
function retrieveCoverageByTest($path, $test)
{
return $this->sqlite->retrieveCoverageByTest($path, $test);
}
}
}
?>
EOF
