Lines Matching refs:testpath

177     function renderLineSummary($name, $line, $testpath, $tests)
213 $output->text(str_replace($testpath . '/', '', $testfile));
294 $this->renderLineSummary($source->name(), $num, $source->testpath(),
414 $output->text(str_replace($agg->testpath . '/', '', $test));
423 function renderTestCoverage(Aggregator $agg, $testpath, $test)
425 $reltest = str_replace($testpath . '/', '', $test);
447 $source = new SourceFile\PerTest($name, $agg, $testpath, $basePath, $test);
483 protected $testpath;
492 function __construct($testpath, $codepath, $db = ':memory:')
559 function scan($testpath)
561 $a = $testpath;
562 $testpath = realpath($testpath);
563 if (!$testpath) {
566 $testpath = str_replace('\\', '/', $testpath);
567 $this->testpath = $testpath;
572 $dir = $testpath;
622 $decorator = new DefaultSourceDecorator($toPath, $this->testpath, $this->codepath);
630 $decorator->renderTestCoverage($this, $this->testpath, $a);
650 protected $testpath;
653 function __construct($path, Aggregator $agg, $testpath, $sourcepath)
663 $this->testpath = $testpath;
677 function testpath()
679 return $this->testpath;
742 protected $testpath;
751 function __construct($testpath, $codepath, $db = ':memory:')
762 $this->sqlite = new Sqlite($db, $codepath, $testpath);
766 $files = $this->scan($testpath);
841 function scan($testpath)
843 $a = $testpath;
844 $testpath = realpath($testpath);
845 if (!$testpath) {
848 $testpath = str_replace('\\', '/', $testpath);
849 $this->testpath = $testpath;
854 $dir = $testpath;
904 $decorator = new DefaultSourceDecorator($toPath, $this->testpath, $this->codepath);
912 $decorator->renderTestCoverage($this, $this->testpath, $a);
933 public $testpath;
935 function __construct($path = ':memory:', $codepath = null, $testpath = null)
942 $this->testpath = $this->db->querySingle('SELECT testpath FROM paths');
945 if (!$codepath || !$testpath) {
950 $this->testpath = $testpath;
1051 $this->db->escapeString($testpath). '")';
1290 function removeOldTest($testpath, $xdebugpath)
1293 $id = $this->getTestId($testpath);
1304 function addTest($testpath)
1306 $id = $this->removeOldTest($testpath, str_replace('.phpt', '.xdebug', $testpath));
1311 $stmt->bindValue(':testpath', $testpath);
1312 $md5 = md5_file($testpath);
1321 $stmt->bindValue(':testpath', str_replace('.phpt', '.xdebug', $testpath));
1322 $md5 = md5_file(str_replace('.phpt', '.xdebug', $testpath));
1458 function addCoverage($testpath, $testid, $xdebug)
1467 if (strpos($path, $this->testpath) === 0) {
1488 throw new Exception('Cannot add coverage for test ' . $testpath .
1572 function __construct($path, Aggregator $agg, $testpath, $sourcepath, $testname)
1575 parent::__construct($path, $agg, $testpath, $sourcepath);