diff --git a/PHPUnit/Util/Report/Node/File.php b/PHPUnit/Util/Report/Node/File.php index 5f0ac2cd145..6c23a3f7ac8 100644 --- a/PHPUnit/Util/Report/Node/File.php +++ b/PHPUnit/Util/Report/Node/File.php @@ -270,13 +270,11 @@ public function render($target, $title, $charset = 'ISO-8859-1', $lowUpperBound $ignore = FALSE; foreach ($this->codeLines as $line) { - $trimmedLine = trim($line); - - if ($trimmedLine == '// @codeCoverageIgnoreStart') { + if (strpos($line, '@codeCoverageIgnoreStart') !== FALSE) { $ignore = TRUE; } - else if ($trimmedLine == '// @codeCoverageIgnoreEnd') { + else if (strpos($line, '@codeCoverageIgnoreEnd') !== FALSE) { $ignore = FALSE; } diff --git a/README.markdown b/README.markdown index 55eefe46018..56205f749a4 100644 --- a/README.markdown +++ b/README.markdown @@ -3,6 +3,11 @@ PHPUnit 3.4 This is the list of changes for the PHPUnit 3.4 release series. +PHPUnit 3.4.7 +------------- + +* Fixed TRAC-979: `@codeCoverageIgnoreStart` is being ignored. + PHPUnit 3.4.6 -------------