Do not add newlines to output

main
Dries Vints 8 years ago committed by Jordi Boggiano
parent a9e5be2b17
commit 2ab7df5566

@ -108,7 +108,7 @@ class ProcessExecutor
if (Process::ERR === $type) { if (Process::ERR === $type) {
$this->io->writeError($buffer); $this->io->writeError($buffer);
} else { } else {
$this->io->write($buffer); $this->io->write($buffer, false);
} }
} }

@ -356,7 +356,7 @@ class EventDispatcherTest extends TestCase
$io->expects($this->once()) $io->expects($this->once())
->method('write') ->method('write')
->with($this->equalTo('foo'.PHP_EOL)); ->with($this->equalTo('foo'.PHP_EOL), false);
$dispatcher->dispatchScript(ScriptEvents::POST_INSTALL_CMD, false); $dispatcher->dispatchScript(ScriptEvents::POST_INSTALL_CMD, false);
} }

@ -40,7 +40,7 @@ class ProcessExecutorTest extends TestCase
$io = $this->getMock('Composer\IO\IOInterface'); $io = $this->getMock('Composer\IO\IOInterface');
$io->expects($this->once()) $io->expects($this->once())
->method('write') ->method('write')
->with($this->equalTo('foo'.PHP_EOL)); ->with($this->equalTo('foo'.PHP_EOL), false);
$process = new ProcessExecutor($io); $process = new ProcessExecutor($io);
$process->execute('echo foo'); $process->execute('echo foo');

Loading…
Cancel
Save