Skip to content
This repository
Browse code

- Do not store inherited methods.

  • Loading branch information...
commit ba5b3107cba58e94fde4572877deae9bc1b7b30a 1 parent ab6a91f
Sebastian Bergmann authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 PHPUnit/Util/Log/PDO.php
4 PHPUnit/Util/Log/PDO.php
@@ -468,6 +468,10 @@ public function storeCodeCoverage(PHPUnit_Framework_TestResult $result)
468 468 $classId = $this->dbh->lastInsertId();
469 469
470 470 foreach ($class->getMethods() as $method) {
  471 + if ($class->getName() != $method->getDeclaringClass()->getName()) {
  472 + continue;
  473 + }
  474 +
471 475 $startLine = $method->getStartLine();
472 476 $endLine = $method->getEndLine();
473 477

0 comments on commit ba5b310

Please sign in to comment.
Something went wrong with that request. Please try again.