Permalink
Browse files

- Do not store inherited methods.

  • Loading branch information...
1 parent ab6a91f commit ba5b3107cba58e94fde4572877deae9bc1b7b30a @sebastianbergmann committed Mar 16, 2007
Showing with 4 additions and 0 deletions.
  1. +4 −0 PHPUnit/Util/Log/PDO.php
View
@@ -468,6 +468,10 @@ public function storeCodeCoverage(PHPUnit_Framework_TestResult $result)
$classId = $this->dbh->lastInsertId();
foreach ($class->getMethods() as $method) {
+ if ($class->getName() != $method->getDeclaringClass()->getName()) {
+ continue;
+ }
+
$startLine = $method->getStartLine();
$endLine = $method->getEndLine();

0 comments on commit ba5b310

Please sign in to comment.