diff --git a/tests/DoctrineTest/Coverage.php b/tests/DoctrineTest/Coverage.php index 5446f360e..9898d8c44 100644 --- a/tests/DoctrineTest/Coverage.php +++ b/tests/DoctrineTest/Coverage.php @@ -84,7 +84,7 @@ class DoctrineTest_Coverage uasort($coveredArray, array($this,"sortArray")); //and flip if it perhaps? - if (isset($_GET["desc"]) && $_GET["desc"] == "true"){ + if (isset($_GET["flip"]) && $_GET["flip"] == "true"){ $coveredArray = array_reverse($coveredArray, true); } @@ -332,6 +332,6 @@ class DoctrineTest_Coverage if ($a[$this->sortBy] == $b[$this->sortBy]) { return 0; } - return ( $a[$this->sortBy] < $b[$this->sortBy]) ? -1 : 1; + return ( $a[$this->sortBy] < $b[$this->sortBy]) ? 1 : -1; } } diff --git a/tests/coverage/index.php b/tests/coverage/index.php index e0290ba69..fbbe13b25 100644 --- a/tests/coverage/index.php +++ b/tests/coverage/index.php @@ -39,7 +39,7 @@ $revision = $svn_info[1];

Coverage report for Doctrine

Report generated against revision getRevision(); ?> current HEAD revision is .

-

Default mode shows results sorted by percentage. This can be changed with GET variables:

+

Default mode shows results sorted by percentage with highest first. Customize the ordering with the following GET parameters: