Skip to content

[Process] Some tests fail on Windows #22556

@maryo

Description

@maryo
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version master

Some tests of the process component fail on my machine - x64 Windows 10, PHP 7.1.4

D:\Www\symfony>php ./phpunit src/Symfony/Component/Process/
#!/usr/bin/env php
INFO: Could not find files for the given pattern(s).
PHPUnit 6.0.13 by Sebastian Bergmann and contributors.

Testing src/Symfony/Component/Process/
...SS.S.FF..................S...S..............................  63 / 161 ( 39%)
......SSS..S..............SSSS............SS..........SS....... 126 / 161 ( 78%)
....................E..............                             161 / 161 (100%)

Time: 23.04 seconds, Memory: 4.00MB

There was 1 error:

1) Symfony\Component\Process\Tests\ProcessTest::testInheritEnvDisabled
array_intersect_key(): Argument #1 is not an array

D:\Www\symfony\src\Symfony\Component\Process\Tests\ProcessTest.php:1443
D:\Www\symfony\.phpunit\phpunit-6.0\phpunit:5

--

There were 2 failures:

1) Symfony\Component\Process\Tests\PhpProcessTest::testNonBlockingWorks
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'hello world!'
+''

D:\Www\symfony\src\Symfony\Component\Process\Tests\PhpProcessTest.php:28
D:\Www\symfony\.phpunit\phpunit-6.0\phpunit:5

2) Symfony\Component\Process\Tests\PhpProcessTest::testCommandLine
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-7.1.4cli
+

D:\Www\symfony\src\Symfony\Component\Process\Tests\PhpProcessTest.php:46
D:\Www\symfony\.phpunit\phpunit-6.0\phpunit:5

ERRORS!
Tests: 161, Assertions: 252, Errors: 1, Failures: 2, Skipped: 17.

Legacy deprecation notices (12)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions