fixing a couple code coverage manager tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7137 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
DarkAngelBGE 2008-06-07 15:21:45 +00:00
parent 2ca6136504
commit 7b7a45f66b

View file

@ -524,7 +524,8 @@ PHP;
69 => 'uncovered show',
70 => 'uncovered show',
71 => 'covered show',
72 => 'ignored show end',
72 => 'ignored show',
73 => 'ignored show end end',
);
$execCodeLines = range(0, 72);
$result = explode("</div>", $report = $manager->reportCaseHtmlDiff($testObjectFile, $coverageData, $execCodeLines, 3));
@ -538,7 +539,7 @@ PHP;
$num = $matches[1];
$class = $expected[$num];
$pattern = '/<div class="code-line '.$class.'">/';
$this->assertTrue(preg_match($pattern, $line), $num.': '.$line." fails");
$this->assertPattern($pattern, $line, $num.': '.$line." fails");
}
}
/**