Conversation
composer.json
Outdated
There was a problem hiding this comment.
This shouldn't be necessary, as sebastian/environment was already a dev dependency. Even if we were to add PHPUnit as a dependency, it should be included under require-dev. That said, I'm of the opinion that it's redundant though, as we can expect developers and Travis to have it already.
There was a problem hiding this comment.
Actually, even if sebastian/environment has a dev dependency on phpunit, dev-dependencies of required packages are not included (only the root package dev-dependencies are included by Composer). Anyway, you are right to say I should have put this in the require-dev, and anyway, it is a mistake from me. I never intended to commit this change. I'll revert it.
There was a problem hiding this comment.
Sorry if I wasn't clear, but I meant sebastian/environment was a dev dependency because our tests needed it to create command line strings. It was listed explicitly because some dated versions of PHPUnit (likely what Travis CI had at the time it was first added) did not depend on it, so we couldn't guarantee it would be available. PHPUnit was never a dev dependency because we assume it's available as a global binary (I realize other projects hold different opinions about that, though).
There was a problem hiding this comment.
Does this mean we expect a test failure on Windows?
There was a problem hiding this comment.
Ah, just saw your comment in the OP.
|
See #13. |
Directly related to issue #9 that I opened yesterday, I've been working on Windows PHPUnit tests.
I fixed a number of those tests. Windows has a very very weird way to handle quotes when passed to the command line so I added a few tweaks to the unit tests so that quotes are handled correctly.
I managed to have all existing tests working on Windows.
But...
I added a few more tests that are working flawlessly on Linux, but failing on Windows.
Those tests are generating a big output (1000 / 10000 / 100000 characters).
This is where the fun starts. Output with 1000 works on Windows.
Output of 10000 fails (Windows outputs only 4096 characters)
Output of 100000 succeeds, but.... takes a whooping 32 seconds! (it takes less than 1 second on Linux)
Tests run with PHP 5.6.6.
Any idea of what might go wrong with Windows? I'm pretty sure it's related to Windows implementation of
proc_openbut I don't know how to prove it or how to fix it.