mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
2ca6136504
commit
7b7a45f66b
1 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue