[Process] Use assertSame instead of assertEquals to avoid comparison against `null`
[Process] Fix process status in TTY mode

When running a process with TTY mode, status in automatically set to `terminated`
once it's started.

It's wrong for two reasons :
 - The status of the process is not yet terminated.
 - The exitcode value is never caught
bug #10412 [Process] Fix process status in TTY mode (romainneutron)

This PR was merged into the 2.3 branch.

Discussion
----------

[Process] Fix process status in TTY mode

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

When running a process with TTY mode, status in automatically set to `terminated`
once it's started.

It's wrong for two reasons :
 - The status of the process is not yet terminated.
 - The exitcode value is never caught

Commits
-------

51c70f8 [Process] Fix process status in TTY mode
[Process] Make process tests more accurate on exception messages
[Process] Fix some unit tests that create the process object instead of delegate it to the implementation
[Process] Fix some unit tests that create the process object instead of delegate it to the implementation

This is the patch for version 2.4
Fixed data in pipe being truncated if not read before process termination
[Process] Fix #9160 : escaping an argument with a trailing backslash on windows fails
Merge branch '2.3' into 2.4

* 2.3:
  [Process] Fix #9160 : escaping an argument with a trailing backslash on windows fails
  [Process] Fix some unit tests that create the process object instead of delegate it to the implementation
  [Process] Make process tests more accurate on exception messages
  [Process] Fix process status in TTY mode
  [Process] Use assertSame instead of assertEquals to avoid comparison against `null`
  [HttpFoundation] added some unit tests
  10158 get vary multiple
  made Cookie stringification more robust
  [Yaml] fix for a HHVM bug
minor #10424 [2.4][Process] Fix some unit tests that create the process object instead of delegate it to the implementation (romainneutron)

This PR was merged into the 2.4 branch.

Discussion
----------

[2.4][Process] Fix some unit tests that create the process object instead of delegate it to the implementation

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

This follows #10421 in branch 2.4

Commits
-------

741a8c1 [Process] Fix some unit tests that create the process object instead of delegate it to the implementation
bug #10153 [Process] Fixed data in pipe being truncated if not read before process termination (astephens25)

This PR was merged into the 2.3 branch.

Discussion
----------

[Process] Fixed data in pipe being truncated if not read before process termination

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9409
| License       | MIT
| Doc PR        | N/A

This is a repeat of the botched pull request #9630.

Commits
-------

7e51913 Fixed data in pipe being truncated if not read before process termination
Merge branch '2.3' into 2.4

* 2.3:
  [Config] made a condition more explicit
  convertDomElementToArray should handle zero values
  prefixed http:// to url output on server:run command in order to make it clickable
  Fixed data in pipe being truncated if not read before process termination
[Process] Fix: Arguments including space and quote are not correctly escaped (win)

Bad
`"bin" "command" \""bin"\"" "\""another command"\"`

Better
`"bin" "command" "\"bin" \"another command\""`
[Process] Add tests on ProcessUtils::escapeArgument
[Process] Avoid failure when calling Process::stop in edge cases

See https://travis-ci.org/symfony/symfony/jobs/20664994 for an example of failure.
[Process] Avoid failure because of a slow process

See example of failure here https://travis-ci.org/symfony/symfony/jobs/20761834.
[Process] Avoid failures because of slow IOs

See example of failure here https://travis-ci.org/symfony/symfony/jobs/20701462
[Process] Make Process::start non-blocking on Windows platform
[Process] Fix escaping on Windows

Windows escaping is broken since the last merges.
[Process] fixed fatal errors in getOutput and getErrorOutput when process was not started