--TEST--
phpunit --log-junit php://stdout ../end-to-end/phpt-stderr.phpt
--FILE--
<?php declare(strict_types=1);
$arguments = [
    '--no-configuration',
    '--log-junit',
    'php://stdout',
    \realpath(__DIR__ . '/../phpt-stderr.phpt'),
];
\array_splice($_SERVER['argv'], 1, count($arguments), $arguments);

require __DIR__ . '/../../bootstrap.php';
PHPUnit\TextUI\Command::main();
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

.                                                                   1 / 1 (100%)<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
  <testsuite name="" tests="1" assertions="1" errors="0" warnings="0" failures="0" skipped="0" time="%s">
    <testcase name="%send-to-end%ephpt-stderr.phpt" assertions="1" time="%s">
      <system-out>PHPUnit must look at STDERR when running PHPT tests.</system-out>
    </testcase>
  </testsuite>
</testsuites>


Time: %s, Memory: %s

OK (1 test, 1 assertion)
