Lines Matching refs:path

162     function mangleFile($path, $istest = false)  argument
164 return $this->controller->getFileLink($path, $istest);
167 function mangleTestFile($path)
169 return $this->controller->getTOClink($path);
532 function coverageInfo($path) argument
534 return $this->sqlite->retrievePathCoverage($path);
537 function coverageInfoByTest($path, $test) argument
539 return $this->sqlite->retrievePathCoverageByTest($path, $test);
542 function retrieveCoverage($path) argument
544 return $this->sqlite->retrieveCoverage($path);
547 function retrieveCoverageByTest($path, $test) argument
549 return $this->sqlite->retrieveCoverageByTest($path, $test);
552 function retrieveXdebug($path, $testid)
554 $source = '$xdebug = ' . file_get_contents($path) . ";\n";
556 $this->sqlite->addCoverage(str_replace('.xdebug', '.phpt', $path), $testid, $xdebug);
595 foreach ($xdebugs as $path) {
596 if ($this->sqlite->unChangedXdebug($path)) {
597 $unmodified[$path] = true;
600 $modified[] = $path;
608 foreach ($this->sqlite->retrieveTestPaths() as $path) {
609 $xdebugpath = str_replace('.phpt', '.xdebug', $path);
615 $this->sqlite->removeOldTest($path, $xdebugpath);
646 protected $path;
653 function __construct($path, Aggregator $agg, $testpath, $sourcepath)
655 $this->source = file($path);
656 $this->path = $path;
669 $this->coverage = $this->aggregator->retrieveCoverage($this->path);
700 return $this->aggregator->coveragePercentage($this->path);
705 return $this->path;
710 return str_replace($this->sourcepath . DIRECTORY_SEPARATOR, '', $this->path);
720 $info = $this->aggregator->coverageInfo($this->path);
727 $this->linelinks = $this->aggregator->retrieveLineLinks($this->path);
814 function coverageInfo($path) argument
816 return $this->sqlite->retrievePathCoverage($path);
819 function coverageInfoByTest($path, $test) argument
821 return $this->sqlite->retrievePathCoverageByTest($path, $test);
824 function retrieveCoverage($path) argument
826 return $this->sqlite->retrieveCoverage($path);
829 function retrieveCoverageByTest($path, $test) argument
831 return $this->sqlite->retrieveCoverageByTest($path, $test);
834 function retrieveXdebug($path, $testid)
836 $source = '$xdebug = ' . file_get_contents($path) . ";\n";
838 $this->sqlite->addCoverage(str_replace('.xdebug', '.phpt', $path), $testid, $xdebug);
877 foreach ($xdebugs as $path) {
878 if ($this->sqlite->unChangedXdebug($path)) {
879 $unmodified[$path] = true;
882 $modified[] = $path;
890 foreach ($this->sqlite->retrieveTestPaths() as $path) {
891 $xdebugpath = str_replace('.phpt', '.xdebug', $path);
897 $this->sqlite->removeOldTest($path, $xdebugpath);
935 function __construct($path = ':memory:', $codepath = null, $testpath = null)
937 $this->db = new \Sqlite3($path);
1169 throw new Exception('Cannot retrieve coverage for ' . $path. ': ' . $error);
1182 throw new Exception('Cannot retrieve coverage for ' . $path. ': ' . $error);
1192 function retrievePathCoverage($path)
1198 if (!isset($this->pathCovered[$path])) {
1201 return array($this->pathCovered[$path], $this->pathTotal[$path]);
1204 function retrievePathCoverageByTest($path, $test)
1206 $id = $this->getFileId($path);
1215 throw new Exception('Cannot retrieve path coverage for ' . $path .
1230 throw new Exception('Cannot retrieve path coverage for ' . $path .
1241 function retrieveCoverageByTest($path, $test)
1243 $id = $this->getFileId($path);
1252 ' coverage for ' . $path. ': ' . $error);
1262 function getFileId($path)
1266 $stmt->bindValue(':filepath', $path);
1268 throw new Exception('Unable to retrieve file ' . $path . ' id from database');
1273 throw new Exception('Unable to retrieve file ' . $path . ' id from database');
1276 function getTestId($path)
1280 $stmt->bindValue(':filepath', $path);
1282 throw new Exception('Unable to retrieve test file ' . $path . ' id from database');
1287 throw new Exception('Unable to retrieve test file ' . $path . ' id from database');
1328 function unChangedXdebug($path)
1333 $stmt->bindValue(':path', $path);
1345 if ($md5 == md5_file($path)) {
1400 function retrieveCoverage($path)
1402 $id = $this->getFileId($path);
1409 throw new Exception('Cannot retrieve coverage for ' . $path. ': ' . $error);
1430 throw new Exception('Cannot retrieve coverage for ' . $path. ': ' . $error);
1445 foreach ($this->retrievePaths() as $path) {
1447 $id = $this->getFileId($path);
1460 foreach ($xdebug as $path => $results) {
1461 if (!file_exists($path)) {
1464 if (strpos($path, $this->codepath) !== 0) {
1467 if (strpos($path, $this->testpath) === 0) {
1474 $id = $this->addFile($path, $issource);
1489 ', covered file ' . $path . ': ' . $error);
1516 foreach ($paths as $path) {
1520 $this->db->escapeString($path) . '"';
1523 if (md5_file($path) == $res['filepathmd5']) {
1526 $modifiedPaths[] = $path;
1546 foreach ($paths as $path) {
1550 $this->db->escapeString($path) . '"';
1553 if (md5_file($path) != $res['testpathmd5']) {
1554 $modifiedTests[$path] = true;
1572 function __construct($path, Aggregator $agg, $testpath, $sourcepath, $testname)
1575 parent::__construct($path, $agg, $testpath, $sourcepath);
1580 $this->coverage = $this->aggregator->retrieveCoverageByTest($this->path, $this->testname);
1585 $info = $this->aggregator->coverageInfoByTest($this->path, $this->testname);
1599 return $this->aggregator->coveragePercentage($this->path, $this->testname);