PEAR2_Pyrus_DeveloperPEAR2_Pyrus_Developer-0.4.0/php/PEAR2/Pyrus/Developer/CoverageAnalyzer/Web/TestCoverage.php

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
<?php
namespace PEAR2\Pyrus\Developer\CoverageAnalyzer\Web;
use PEAR2\Pyrus\Developer\CoverageAnalyzer\SourceFile;
class TestCoverage extends \ArrayIterator
{
    public $sqlite;
    public $test;

    function __construct($sqlite, $test)
    {
        $this->sqlite = $sqlite;
        $this->test   = $test;
        parent::__construct($this->sqlite->retrievePathsForTest($test));
    }

    function __call($method, $args)
    {
        return $this->sqlite->$method();
    }

    function __get($var)
    {
        return $this->sqlite->$var;
    }

    function current()
    {
        $current = parent::current();
        return new SourceFile\PerTest($current, $this->sqlite, $this->sqlite->testpath, $this->sqlite->codepath, $this->test);
    }

}
EOF