Permalink
Browse files

- Merge [886].

  • Loading branch information...
1 parent e29d6af commit 1a62a4b372ae8dd61095721e039186a36b4bdfb9 @sebastianbergmann committed Aug 2, 2007
@@ -169,8 +169,9 @@ public function storeCodeCoverage(PHPUnit_Framework_TestResult $result, $revisio
$stmt2 = $this->dbh->prepare(
'INSERT INTO code_method
(code_class_id, code_method_name,
- code_method_start_line, code_method_end_line)
- VALUES(:classId, :methodName, :startLine, :endLine);'
+ code_method_start_line, code_method_end_line,
+ code_method_ccn)
+ VALUES(:classId, :methodName, :startLine, :endLine, :ccn);'
);
foreach ($class->getMethods() as $method) {
@@ -181,11 +182,13 @@ public function storeCodeCoverage(PHPUnit_Framework_TestResult $result, $revisio
$methodName = $method->getName();
$startLine = $method->getStartLine();
$endLine = $method->getEndLine();
+ $ccn = PHPUnit_Util_Class::getCCN($className, $methodName);
$stmt2->bindParam(':classId', $classId, PDO::PARAM_INT);
$stmt2->bindParam(':methodName', $methodName, PDO::PARAM_STR);
$stmt2->bindParam(':startLine', $startLine, PDO::PARAM_INT);
$stmt2->bindParam(':endLine', $endLine, PDO::PARAM_INT);
+ $stmt2->bindParam(':ccn', $ccn, PDO::PARAM_INT);
$stmt2->execute();
}
@@ -89,6 +89,7 @@ CREATE TABLE IF NOT EXISTS code_method(
code_method_name CHAR(255),
code_method_start_line INTEGER UNSIGNED NOT NULL,
code_method_end_line INTEGER UNSIGNED NOT NULL,
+ code_method_ccn INTEGER UNSIGNED NOT NULL,
INDEX (code_class_id)
) ENGINE=InnoDB;
@@ -88,7 +88,8 @@ CREATE TABLE IF NOT EXISTS code_method(
code_method_id INTEGER PRIMARY KEY AUTOINCREMENT,
code_method_name TEXT,
code_method_start_line INTEGER,
- code_method_end_line INTEGER
+ code_method_end_line INTEGER,
+ code_method_ccn INTEGER
);
CREATE INDEX IF NOT EXISTS code_class_id ON code_method (code_class_id);

0 comments on commit 1a62a4b

Please sign in to comment.