Skip to content
Browse files

- Merge [5094].

  • Loading branch information...
1 parent 42cf3a7 commit 0be69f4177b756b27e143cd7257874b9dad98370 @sebastianbergmann committed Aug 15, 2009
Showing with 7 additions and 7 deletions.
  1. +7 −7 PHPUnit/Util/Report/Node/File.php
View
14 PHPUnit/Util/Report/Node/File.php
@@ -269,14 +269,14 @@ public function render($target, $title, $charset = 'ISO-8859-1', $lowUpperBound
$ignore = FALSE;
foreach ($this->codeLines as $line) {
- if (strpos($line, '@codeCoverageIgnore') !== FALSE) {
- if (strpos($line, '@codeCoverageIgnoreStart') !== FALSE) {
- $ignore = TRUE;
- }
+ $trimmedLine = trim($line);
- else if (strpos($line, '@codeCoverageIgnoreEnd') !== FALSE) {
- $ignore = FALSE;
- }
+ if ($trimmedLine == '// @codeCoverageIgnoreStart') {
+ $ignore = TRUE;
+ }
+
+ else if ($trimmedLine == '// @codeCoverageIgnoreEnd') {
+ $ignore = FALSE;
}
$css = '';

0 comments on commit 0be69f4

Please sign in to comment.
Something went wrong with that request. Please try again.