Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[Process][Tests] Prove process fail
  • Loading branch information
lyrixx committed Sep 25, 2012
commit 598dcf3c57b6ff914cb6b8c13d84863c525b816f
11 changes: 11 additions & 0 deletions src/Symfony/Component/Process/Tests/AbstractProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ public function testProcessPipes($expected, $code)
$this->assertSame($expected, $p->getErrorOutput());
}

public function testProcessOutput()
{
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$this->markTestSkipped('Does it work on windows ?');
}

$process = $this->getProcess("echo -n 1 ; echo -n 1");
$process->run();
$this->assertEquals('11', $process->getOutput());
}

public function testCallbackIsExecutedForOutput()
{
$p = $this->getProcess(sprintf('php -r %s', escapeshellarg('echo \'foo\';')));
Expand Down