From b4fd19aae4647d4b226e90176b1c9f618dbe3294 Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Tue, 27 Sep 2016 14:45:19 +0200 Subject: [PATCH] add test exposing the problem --- tests/Composer/Test/Util/ProcessExecutorTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/Composer/Test/Util/ProcessExecutorTest.php b/tests/Composer/Test/Util/ProcessExecutorTest.php index 101b0b710..27fe00554 100644 --- a/tests/Composer/Test/Util/ProcessExecutorTest.php +++ b/tests/Composer/Test/Util/ProcessExecutorTest.php @@ -54,10 +54,16 @@ class ProcessExecutorTest extends TestCase { $process = new ProcessExecutor($buffer = new BufferIO('', StreamOutput::VERBOSITY_DEBUG)); $process->execute('echo https://foo:bar@example.org/ && echo http://foo@example.org && echo http://abcdef1234567890234578:x-oauth-token@github.com/', $output); - $this->assertEquals('Executing command (CWD): echo https://foo:***@example.org/ && echo http://foo@example.org && echo http://***:***@github.com/', trim($buffer->getOutput())); } + public function testDoesntHidePorts() + { + $process = new ProcessExecutor($buffer = new BufferIO('', StreamOutput::VERBOSITY_DEBUG)); + $process->execute('echo https://localhost:1234/', $output); + $this->assertEquals('Executing command (CWD): echo https://localhost:1234/', trim($buffer->getOutput())); + } + public function testSplitLines() { $process = new ProcessExecutor;