Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h3>Short Version:</h3> <p>It's a bug in PHPUnit. <a href="https://github.com/sebastianbergmann/phpunit/commit/3fd14394092288f2cc9891131fd1c2cb964ef4e5" rel="nofollow">I've fixed it.</a> With the next minor release it will work.</p> <hr> <h3>Long Version:</h3> <p>You have already noticed that your file is included in the backtrace</p> <pre><code> C:\Users\lbassett\Dropbox\Projects\Test\testTest.php:10 </code></pre> <p>so the question is why is there all that other stuff around your classes.</p> <p>PHPUnit <strong>should</strong> filter that backtrace and strip out all the PHPUnit classes but for some reasons that seems to not work.</p> <p>The output on linux:</p> <pre><code>PHPUnit 3.6.5 by Sebastian Bergmann. F Time: 0 seconds, Memory: 3.00Mb There was 1 failure: 1) failingTest::testFail Failed asserting that false is true. /home/edo/phpunit-dev/oneFailingTest/failingTest.php:6 </code></pre> <p>I at first was expecting an issue with the spaces in <code>Program Files</code> but I've installed it in a folder without spaces and it "breaks" there too.</p> <p>For me this is a bug in PHPUnit.</p> <p><strike>I suggest <a href="https://github.com/sebastianbergmann/phpunit" rel="nofollow"><strong><code>you file an issue at the github issue tracker</code></strong></a> that the backtrace filtering seems broken on windows and I'll see if I can take care of that then.</strike> <strong>Edit: <a href="https://github.com/sebastianbergmann/phpunit/commit/3fd14394092288f2cc9891131fd1c2cb964ef4e5" rel="nofollow">I've pushed a fix</a>. It should be solved in <code>PHPUnit 3.6.6</code> (when it is released). See the edits.</strong></p> <hr> <p>Edit: Yeah. The issue seems to come from PHPUnit_Util_Filter::phpunitFiles(); returning the paths with <code>\</code> instead of <code>/</code>. </p> <h3>Fix</h3> <p>If you put the following code in: <code>PHPUnit/Util/GlobalState.php</code> at line 412. (Before the return statement)</p> <pre><code>foreach(self::$phpunitFiles as $key =&gt; $value) { unset(self::$phpunitFiles[$key]); self::$phpunitFiles[str_replace("/", "\\", $key)] = $value; } </code></pre> <p>then you get a nice looking backtrace. I'll see to it that it gets fixed in 3.6.6 with a nicer patch.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload