Skip to content
This repository
Browse code

Fixed backtrace filtering not working on Windows due to the pathes of…

… the PHPUnit files not matching the pathes in the backtraces.
  • Loading branch information...
commit 3fd14394092288f2cc9891131fd1c2cb964ef4e5 1 parent af0bdd6
Volker Dusch edorian authored

Showing 2 changed files with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  ChangeLog.markdown
  2. +3 0  PHPUnit/Util/GlobalState.php
1  ChangeLog.markdown
Source Rendered
@@ -10,6 +10,7 @@ PHPUnit 3.6.6
10 10 * `@expectedExceptionCode` may now be 0.
11 11 * Test output now is included as on 'output' element in the JSON log
12 12 * Fixed #445: Expected output assertions didn't work in strict mode
  13 +* Fixed stacktraces on windows wrongly showing the PHPUnit files
13 14
14 15 PHPUnit 3.6.5
15 16 -------------
3  PHPUnit/Util/GlobalState.php
@@ -407,6 +407,9 @@ public static function phpunitFiles()
407 407 );
408 408 }
409 409
  410 + foreach(self::$phpunitFiles as $key => $value) {
  411 + self::$phpunitFiles[$key] = str_replace('/', DIRECTORY_SEPARATOR, $value);
  412 + }
410 413 self::$phpunitFiles = array_flip(self::$phpunitFiles);
411 414 }
412 415

0 comments on commit 3fd1439

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