Skip to content

Commit

Permalink
Fix more tests.
Browse files Browse the repository at this point in the history
* Invert assertions as APP is now inside CAKE during core tests.
  • Loading branch information
markstory committed Sep 6, 2013
1 parent c2171e8 commit aa7cac1
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions lib/Cake/Test/TestCase/TestSuite/HtmlCoverageReportTest.php
@@ -1,7 +1,5 @@
<?php
/**
* Test case for HtmlCoverageReport
*
* PHP5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
Expand All @@ -13,7 +11,6 @@
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package Cake.Test.Case.TestSuite
* @since CakePHP(tm) v 2.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
Expand All @@ -28,7 +25,6 @@
/**
* Class HtmlCoverageReportTest
*
* @package Cake.Test.Case.TestSuite
*/
class HtmlCoverageReportTest extends TestCase {

Expand Down Expand Up @@ -76,19 +72,19 @@ public function testGetPathFilter() {
*/
public function testFilterCoverageDataByPathRemovingElements() {
$data = array(
CAKE . 'dispatcher.php' => array(
CAKE . 'Dispatcher.php' => array(
10 => -1,
12 => 1
),
APP . 'app_model.php' => array(
APP . 'AppModel.php' => array(
50 => 1,
52 => -1
)
);
$this->Coverage->setCoverage($data);
$result = $this->Coverage->filterCoverageDataByPath(CAKE);
$this->assertTrue(isset($result[CAKE . 'dispatcher.php']));
$this->assertFalse(isset($result[APP . 'app_model.php']));
$result = $this->Coverage->filterCoverageDataByPath(APP);
$this->assertArrayNotHasKey(CAKE . 'Dispatcher.php', $result);
$this->assertArrayHasKey(APP . 'AppModel.php', $result);
}

/**
Expand Down

0 comments on commit aa7cac1

Please sign in to comment.