Describe the bug
I have few tests that handle utf8 strings. When I run phpunit from IDE, or from command like ./vendor/bin/phpunit tests, tests succeeds.
If I run it via phing, the tests will fail. I'm not sure if encoding is the issue, but it looks like it - when I add echo to the testcase, it prints incorrectly when called from phing.
Test(s) failed: Test FAILURE (testMinimal in class [...]phpunit\src\Framework\Constraint\Equality\IsEqual.php on line 96): Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-''
+''
While target tests2 succeeds.
Expected behavior
PhpUnit task should behave in the same way as if it was run directly from command line
Additional context
Add any other context about the problem here.
Windows, PHP 8.1.9, PHPUnit 9.5, Phing 3.0 RC6
Describe the bug I have few tests that handle utf8 strings. When I run phpunit from IDE, or from command like
./vendor/bin/phpunit tests
, tests succeeds.If I run it via phing, the tests will fail. I'm not sure if encoding is the issue, but it looks like it - when I add echo to the testcase, it prints incorrectly when called from phing.
Steps To Reproduce Minimal test case:
Phing tasks:
When run, target
tests
fails withWhile target
tests2
succeeds.Expected behavior PhpUnit task should behave in the same way as if it was run directly from command line
Additional context Add any other context about the problem here. Windows, PHP 8.1.9, PHPUnit 9.5, Phing 3.0 RC6